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>
This commit is contained in:
Andy Shevchenko 2021-05-20 13:00:01 +03:00
commit 5d99366482