diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2013-12-11 06:32:28 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-12 22:33:59 +0400 |
commit | 2a3cf6a3599e901528d3e0025a1bd0722a8d3575 (patch) | |
tree | 67bb549dbb30bf8a0a40395176aac02466a25c23 /Documentation/w1 | |
parent | 3b31d0eca5fd8d7d485c7cb7319a5cd6a3207726 (diff) | |
download | linux-2a3cf6a3599e901528d3e0025a1bd0722a8d3575.tar.xz |
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>
Diffstat (limited to 'Documentation/w1')
0 files changed, 0 insertions, 0 deletions