From: Alexandre Courbot Date: Wed, 11 Dec 2013 02:32:28 +0000 (+0900) Subject: gpiolib: return -ENOENT if no GPIO mapping exists X-Git-Tag: v3.14-rc1~145^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3cf6a3599e901528d3e0025a1bd0722a8d3575;p=pandora-kernel.git 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 Reviewed-by: Andy Shevchenko Reviewed-by: Mika Westerberg Signed-off-by: Linus Walleij --- Reading git-diff-tree failed