summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sta2x11.c
diff options
context:
space:
mode:
authorLinus Walleij2017-10-19 23:30:12 +0200
committerLinus Walleij2017-10-30 08:35:32 +0100
commit80057cb417b2873cf645ac85568118c32f038f4c (patch)
treec5ae79da5d85538259909061496c21a8527b2497 /drivers/gpio/gpio-sta2x11.c
parentgpio: mmio: Make pin2mask() a private business (diff)
downloadkernel-qcow2-linux-80057cb417b2873cf645ac85568118c32f038f4c.tar.gz
kernel-qcow2-linux-80057cb417b2873cf645ac85568118c32f038f4c.tar.xz
kernel-qcow2-linux-80057cb417b2873cf645ac85568118c32f038f4c.zip
gpio-mmio: Use the new .get_multiple() callback
It is possible to read all lines of a generic MMIO GPIO chip with a single register read so support this if we are in native endianness. Add an especially quirky callback to read multiple lines for the variants that require you to read values from the output registers if and only if the line is set as output. We managed to do that with a maximum of two register reads, and just one read if the requested lines are all input or all output. Cc: Anton Vorontsov <anton@enomsg.org> Cc: Lukas Wunner <lukas@wunner.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sta2x11.c')
0 files changed, 0 insertions, 0 deletions