summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorJanusz Krzysztofik2018-09-05 23:50:08 +0200
committerLinus Walleij2018-09-13 11:17:23 +0200
commitb17566a6b08be18ded5472a2e4bbc066593b3662 (patch)
tree855c1933616c99b7b7998be6e5e5a88dc490d5a4 /include/linux/gpio
parentgpiolib: Pass array info to get/set array functions (diff)
downloadkernel-qcow2-linux-b17566a6b08be18ded5472a2e4bbc066593b3662.tar.gz
kernel-qcow2-linux-b17566a6b08be18ded5472a2e4bbc066593b3662.tar.xz
kernel-qcow2-linux-b17566a6b08be18ded5472a2e4bbc066593b3662.zip
gpiolib: Implement fast processing path in get/set array
Certain GPIO descriptor arrays returned by gpio_get_array() may contain information on direct mapping of array members to pins of a single GPIO chip in hardware order. In such cases, bitmaps of values can be passed directly from/to the chip's .get/set_multiple() callbacks without wasting time on iterations. Add respective code to gpiod_get/set_array_bitmap_complex() functions. Pins not applicable for fast path are processed as before, skipping over the 'fast' ones. Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
0 files changed, 0 insertions, 0 deletions