linux_dsm_epyc7002/Documentation/gpio
Alexandre Courbot 2a3cf6a359 gpiolib: return -ENOENT if no GPIO mapping exists
Some devices drivers make use of optional GPIO parameters. For such
drivers, it is important to discriminate between the case where no
GPIO mapping has been defined for the function they are requesting, and
the case where a mapping exists but an error occured while resolving it
or when acquiring the GPIO.

This patch changes the family of gpiod_get() functions such that they
will return -ENOENT if and only if no GPIO mapping is defined for the
requested function. Other error codes are used when an actual error
occured during the GPIO resolution.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-12-12 19:33:59 +01:00
..
00-INDEX Documentation: gpiolib: add 00-INDEX file 2013-12-03 13:10:48 +01:00
board.txt gpio: better lookup method for platform GPIOs 2013-12-09 14:05:51 +01:00
consumer.txt gpiolib: return -ENOENT if no GPIO mapping exists 2013-12-12 19:33:59 +01:00
driver.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
gpio-legacy.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
gpio.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
sysfs.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00