summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-02-27 16:25:15 +0100
committerGrant Likely <grant.likely@secretlab.ca>2013-03-02 14:20:21 +0100
commite97f9b5277afeabb54892ebc6f68500098467ba1 (patch)
tree598ee12c94ce73155d8046cfe16210dc09c40014 /include
parentgpiolib: move comment to right function (diff)
downloadlinux-e97f9b5277afeabb54892ebc6f68500098467ba1.tar.xz
linux-e97f9b5277afeabb54892ebc6f68500098467ba1.zip
gpio/gpio-ich: fix ichx_gpio_check_available() return what callers expect
ichx_gpio_check_available() returns either 0 or -ENXIO depending on whether the given GPIO is available or not. However, callers of this function treat the return value as boolean: ... if (!ichx_gpio_check_available(gpio, nr)) return -ENXIO; which erroneusly fails when the GPIO is available and not vice versa. Fix this by making the function return boolean as expected by the callers. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions