gpio: wcove: Unify style of to_reg() with to_ireg()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 May 2021 10:00:01 +0000 (13:00 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 May 2021 10:43:22 +0000 (13:43 +0300)
commit5d9936648285b8ccb6b61257dd2ddd76f9cd719a
treed3a9e1f5c31f255e3b422a8890c71285bfc2580b
parentf3019092eca09f3d093dbc306bf118daff15bfd2
gpio: wcove: Unify style of to_reg() with to_ireg()

Use ternary and rename parameter to 'type' in to_reg() to be in
the same style as to_ireg().

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