]> git.sur5r.net Git - u-boot/commit
gpio: pca953x: Fix register reading past 8th GPIO
authormario.six@gdsys.cc <mario.six@gdsys.cc>
Mon, 23 May 2016 07:54:56 +0000 (09:54 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 19 Jun 2016 23:05:55 +0000 (17:05 -0600)
commitfc76b698736efa9d52e06aa09c03dc8ef10fd581
treedc9ae4cd8f235d0218ddd834bbd85bf611250872
parent5aeedebc33849efbbee2d422a4c7da8194e1b670
gpio: pca953x: Fix register reading past 8th GPIO

A bug in the pca953x driver prevents correct reading of GPIO input
values beyond the 8th GPIO; all values are reported as zero. Setting of
GPIO output values is not affected.

This patch fixes the reading behavior.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Peng Fan <van.freenix@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/gpio/pca953x_gpio.c