OSDN Git Service

gpio: wcove: Split out to_ireg() helper and deduplicate the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Oct 2020 14:13:23 +0000 (17:13 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:32 +0000 (11:43 +0100)
commit5a2a46ae4b26501aab068a9a94dc581af040c7ed
tree99b1734e2f82e8dcaf6bd7e987b8992d0700a5f9
parent9fe5fcd640359c113060676174039b8940f588e1
gpio: wcove: Split out to_ireg() helper and deduplicate the code

There are a few places in the code where IRQ status and mask register
values are being updated. Use a new exctracted helper to deduplicate
the code.

While at it, get rid of unnecessary divisions.

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