gpio: wcove: Use IRQ hardware number getter instead of direct access
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 May 2021 09:46:05 +0000 (12:46 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 May 2021 10:43:22 +0000 (13:43 +0300)
commitf3019092eca09f3d093dbc306bf118daff15bfd2
treeb1e12daf6f063a8c845bb16f2d4988c047644e00
parent5b2d3326cdf83fde3590f45c93507c1c852327e8
gpio: wcove: Use IRQ hardware number getter instead of direct access

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

While at it, remove unneeded check in wcove_update_irq_ctrl() since
it is guaranteed that function will be called with valid parameter.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-wcove.c