linux-stable/include/linux/gpio
Vladimir Zapolskiy 60befd2ea1 gpio: update gpiochip .get() callback description
Since gpiochip .get() callback may return a negative error value, it
strictly limits the range of possible non-error returned values to
a subset of [30:0] bitmask, however on practice on success all
gpiochip drivers return either 0 for low signal or 1 for high signal,
this is assured by "gpio: *: Be sure to clamp return value" series of
changes. To avoid any confusion, misinterpretation and potential
errors while developing gpiochip drivers in future convert this
implicit assumption to a mandatory rule.

For output signals with unknown output signal state gpiochip drivers
should return a negative error instead of 0.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-26 22:28:43 +01:00
..
consumer.h gpio: keep the GPIO line names internal 2015-09-24 10:48:53 -07:00
driver.h gpio: update gpiochip .get() callback description 2015-12-26 22:28:43 +01:00
machine.h gpiolib: Add support for removing registered consumer lookup table 2015-07-21 09:21:40 +02:00