gpiolib: Use IRQ hardware number getter instead of direct access
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Mar 2023 18:58:19 +0000 (20:58 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Mar 2023 09:58:13 +0000 (10:58 +0100)
commitdb4064cc108214bf0912b89c7e660c7d9d6bba1d
tree37fb3b81f3a4bdf9a7b8999c3a29f4534fe5e9d3
parentc122f461ccac0e78e8e45d4f6de14e58942572f6
gpiolib: Use IRQ hardware number getter instead of direct access

IRQ framework provides special type and getter to transform
the Linux IRQ to the hardware pin. Use that type and getter
function instead of direct access.

While at it, amend an indentation in a couple of places.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c