summaryrefslogtreecommitdiffstats
path: root/tools/gpio
diff options
context:
space:
mode:
authorTimur Tabi <timur@codeaurora.org>2017-12-20 13:10:32 -0600
committerLinus Walleij <linus.walleij@linaro.org>2017-12-21 13:04:35 +0100
commit93ebe8636bb0d95e2e711f2a53abbb72a9d9cf8d (patch)
tree479035b14d57340c881bd7e0a2f0f26b09f3a367 /tools/gpio
parent1ca2a92b2a99323f666f1b669b7484df4bda05e4 (diff)
downloadlinux-93ebe8636bb0d95e2e711f2a53abbb72a9d9cf8d.tar.gz
linux-93ebe8636bb0d95e2e711f2a53abbb72a9d9cf8d.tar.bz2
linux-93ebe8636bb0d95e2e711f2a53abbb72a9d9cf8d.zip
pinctrl: qcom: disable GPIO groups with no pins
pinctrl-msm only accepts an array of GPIOs from 0 to n-1, and it expects each group to support have only one pin (npins == 1). We can support "sparse" GPIO maps if we allow for some groups to have zero pins (npins == 0). These pins are "hidden" from the rest of the driver and gpiolib. Access to unavailable GPIOs is blocked via a request callback. If the requested GPIO is unavailable, -EACCES is returned, which prevents further access to that GPIO. Signed-off-by: Timur Tabi <timur@codeaurora.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio')
0 files changed, 0 insertions, 0 deletions