]> www.infradead.org Git - users/dwmw2/linux.git/commit
gpio: pca953x: use pca953x_read_regs instead of regmap_bulk_read
authorDavid Jander <david@protonic.nl>
Tue, 27 Aug 2019 06:46:29 +0000 (06:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:23:17 +0000 (08:23 +0200)
commitd89e8b4684f193a5661968c492e08639c965d23b
tree9e73e212b025c0cc0285957225adb921937e31f5
parentb3a1644a19a7f186880472a1e81ba3b1d276b32f
gpio: pca953x: use pca953x_read_regs instead of regmap_bulk_read

commit 438b6c20e6161a1a7542490baa093c86732f77d6 upstream.

The register number needs to be translated for chips with more than 8
ports. This patch fixes a bug causing all chips with more than 8 GPIO pins
to not work correctly.

Fixes: 0f25fda840a9 ("gpio: pca953x: Zap ad-hoc reg_direction cache")
Cc: Cc: <stable@vger.kernel.org>
Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-pca953x.c