]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: revert get() to non-errorprogating behaviour
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Dec 2015 09:14:24 +0000 (10:14 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Dec 2015 14:48:29 +0000 (15:48 +0100)
commit28f685938aa15e9becd8007046ec67ab9775e081
tree95308f6db9e1583891df11f44015aa1f23b56ff4
parent9afcc9ae726b3c5541e3e0f83b4347e67093ec84
gpio: revert get() to non-errorprogating behaviour

commit 524338b1b06d
("gpio: Propagate errors from chip->get()")
started to propagate errors from the .get() functions since
we can get errors from the infrastructure of e.g. slowbus
GPIO expanders.

However it turns out a bunch of drivers relied on the core
to clamp the value, so we need to revert to the old behaviour
and go over all drivers and fix them to conform to the
expectations of the core before we go back to propagating
the error code.

Cc: stable@vger.kernel.org # 4.3+
Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Cc: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Fixes: 524338b1b06d ("gpio: Propagate errors from chip->get()")
Reported-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c