pinctrl: moorefield: Fix open-drain pin mode configuration
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Jun 2023 15:45:22 +0000 (18:45 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 6 Jun 2023 13:08:20 +0000 (16:08 +0300)
commitbe5bb8f08205b5af9c44dccc9567584f572e2264
tree19837830db2028dca97b2147d4311f4595c8935d
parent29cf9f36215c350a1990f68f1798fc826e4ef00b
pinctrl: moorefield: Fix open-drain pin mode configuration

Currently the pin may not be configured as open-drain in some
cases because the argument may be 0 for the boolean types of
the pin configurations. Fix this by ignoring the argument.

With that, allow to actually restore pin to the push-pull mode.

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