pinctrl: merrifield: Fix open-drain pin mode configuration
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Jun 2023 15:45:08 +0000 (18:45 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 6 Jun 2023 13:07:33 +0000 (16:07 +0300)
commit9891422ba6777272e2638c5fbae6800cc23baf4e
tree55336f7dd3763ba9fc8c940dc4aae6a549e95ea6
parent5835196a17be5cfdcad0b617f90cf4abe16951a4
pinctrl: merrifield: 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-merrifield.c