pinctrl: intel: Use helper to restore register values on ->resume()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Oct 2019 10:00:04 +0000 (13:00 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 30 Oct 2019 14:05:18 +0000 (16:05 +0200)
commit942c5ea49ffbe28b004ffb9b620f1aa4e21ba94a
treebc2c4d95802b77352ef5f0b11778e78a20000aff
parent764cfe33517f7cda42f01bb5e4077cfce2233230
pinctrl: intel: Use helper to restore register values on ->resume()

We can restore only values that had been changed and do not spam kernel log
with unnecessary messages. Convert intel_gpio_update_pad_mode() to a helper
function that will be used across few callers.

Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c