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)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 28 Aug 2019 10:55:24 +0000 (12:55 +0200)
commit438b6c20e6161a1a7542490baa093c86732f77d6
tree4aa9c27b47d10fadc92e62e8b46fc7fa511c8307
parentbc624a06f0c5190bc37fec7d22cd82b43a579698
gpio: pca953x: use pca953x_read_regs instead of regmap_bulk_read

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>
drivers/gpio/gpio-pca953x.c