OSDN Git Service

gpio: ws16c48: Implement get_multiple callback
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Thu, 22 Mar 2018 13:00:59 +0000 (09:00 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Mar 2018 08:28:19 +0000 (10:28 +0200)
commita8ff510dbc2a4f1e17b97e35f9607c47a1df89a9
tree63625d374b01fd2bdaee947d1a5893ab8f998c72
parent41b251318a6359848eef98b630ed578fad2cfbe6
gpio: ws16c48: Implement get_multiple callback

The WinSystems WS16C48 device provides 48 lines of digital I/O accessed
via six 8-bit ports. Since eight input lines are acquired on a single
port input read, the WS16C48 GPIO driver may improve multiple input
reads by utilizing a get_multiple callback. This patch implements the
ws16c48_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-ws16c48.c