]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Support GPIO controllers without pin-ranges
authorThierry Reding <treding@nvidia.com>
Thu, 19 Mar 2020 12:27:29 +0000 (13:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Mar 2020 10:34:53 +0000 (11:34 +0100)
commit7e6393e4f9f053e3704464bfaccbef07a8e9c9bd
tree63248ef39eecb4f2ddb7bb8ad7607fcb3747bcec
parent8fa0e9d7f3e8722ec6c652aece0b12854c751567
gpio: Support GPIO controllers without pin-ranges

Wake gpiochip_generic_request() call into the pinctrl helpers only if a
GPIO controller had any pin-ranges assigned to it. This allows a driver
to unconditionally use this helper if it supports multiple devices of
which only a subset have pin-ranges assigned to them.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200319122737.3063291-2-thierry.reding@gmail.com
Tested-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c