OSDN Git Service

gpio: rockchip: lock GPIOs used as interrupts
authorJohn Keeping <john@metanate.com>
Thu, 2 Dec 2021 15:50:21 +0000 (15:50 +0000)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 3 Dec 2021 14:59:10 +0000 (15:59 +0100)
commitadc8b4bf2a7f6f513c560bb8e225d4750ce5e872
tree5336521b17bd153ee7a2f207a64f9cb65deaaeac
parenta00128dfc8fc0cc8848d9168d6e7cfff99bd46f0
gpio: rockchip: lock GPIOs used as interrupts

Use the standard gpiochip request/release resource functions so that any
GPIOs used as interrupts are properly locked.  This allows libgpiod to
correctly show these GPIOs as in-use.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-rockchip.c