gpio: 104-idio-16: Implement get_multiple callback
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Thu, 22 Mar 2018 12:59:37 +0000 (08:59 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Mar 2018 08:10:18 +0000 (10:10 +0200)
commit15f59cfff92bcbbb67e1b7ebb4d10b845797bdeb
treef730e0d79580385290b2ae9cd5a131285c51f31b
parent4784e710b1653bee64e5f85d7dba70e8e62f8473
gpio: 104-idio-16: Implement get_multiple callback

The ACCES I/O 104-IDIO-16 series of devices provides 16
optically-isolated digital inputs accessed via two 8-bit ports. Since
eight input lines are acquired on a single port input read, the
104-IDIO-16 GPIO driver may improve multiple input reads by utilizing a
get_multiple callback. This patch implements the
idio_16_gpio_get_multiple function which serves as the respective
get_multiple callback.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-104-idio-16.c