summaryrefslogtreecommitdiff
path: root/tools/vm
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-06-15 20:57:38 (GMT)
committerRichard Weinberger <richard@nod.at>2016-06-22 22:29:30 (GMT)
commit39243ee771666e02201ba89c1d76fdc28e9cf681 (patch)
treec8a1f7b6d16eecada21a5df378667c11fc680122 /tools/vm
parent0b305ccc1b545d3389068ddc3548cbc877513b97 (diff)
downloadlinux-39243ee771666e02201ba89c1d76fdc28e9cf681.tar.xz
gpio: make sure gpiod_to_irq() returns negative on NULL desc
commit 54d77198fdfbc4f0fe11b4252c1d9c97d51a3264 ("gpio: bail out silently on NULL descriptors") doesn't work for gpiod_to_irq(): drivers assume that NULL descriptors will give negative IRQ numbers in return. It has been pointed out that returning 0 is NO_IRQ and that drivers should be amended to treat this as an error, but that is for the longer term: now let us repair the semantics. Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Reported-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/vm')
0 files changed, 0 insertions, 0 deletions