gpio: pcie-idio-24: Implement get_multiple/set_multiple callbacks
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Thu, 22 Mar 2018 13:00:00 +0000 (09:00 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Mar 2018 08:24:55 +0000 (10:24 +0200)
commitca37081595a2fa1d67c962d416392d36ae8d05ad
treea0ceffbfacf61076bc33c1830fbea1979e48aeb4
parent810ebfc5efca9a05c57e5d2bad0f944b0f24267d
gpio: pcie-idio-24: Implement get_multiple/set_multiple callbacks

The ACCES I/O PCIe-IDIO-24 series of devices provides 24
optically-isolated digital I/O accessed via six 8-bit ports. Since eight
input lines are acquired on a single port input read -- and similarly
eight output lines are set on a single port output write -- the
PCIe-IDIO-24 GPIO driver may improve multiple I/O reads/writes by
utilizing a get_multiple/set_multiple callbacks. This patch implements
the idio_24_gpio_get_multiple function which serves as the respective
get_multiple callback, and implements the idio_24_gpio_set_multiple
function which serves as the respective set_multiple callback.

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