]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: gpio-pca953x, Add get_multiple function
authorPaul Thomas <pthomas8589@gmail.com>
Tue, 14 Apr 2020 15:28:42 +0000 (11:28 -0400)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 16 Apr 2020 13:20:40 +0000 (15:20 +0200)
commitbadc32c37e2a1261bf953611ce3c8819a4dcea34
tree9e3656e1b11a97a12fdd86db84a7a2a9b6cb1693
parented7c73c10cc52bb02ddf21def368c343d8f2737f
gpio: gpio-pca953x, Add get_multiple function

Implement a get_multiple function for gpio-pca953x. If a driver
leaves get_multiple unimplemented then gpio_chip_get_multiple()
in gpiolib.c takes care of it by calling chip->get() as needed.
For i2c chips this is very inefficient. For example if you do an
8-bit read then instead of a single i2c transaction there are
8 transactions reading the same byte!

Signed-off-by: Paul Thomas <pthomas8589@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pca953x.c