]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: intel: Refactor __intel_gpio_set_direction() to be more useful
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 29 Aug 2024 13:59:16 +0000 (16:59 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Aug 2024 18:44:37 +0000 (21:44 +0300)
commit8c4a51f8d3aaf2cb56f7a2921a7c849422aecdf4
tree95491aea1a24eeaaf10a493ea51caa9d2fdcddc0
parente5544d99d05e8df3e27c719d32ef53d0b6662bb0
pinctrl: intel: Refactor __intel_gpio_set_direction() to be more useful

Refactor __intel_gpio_set_direction() to be more useful, i.e.
1) use one parameter per each direction to support all combinatios;
2) move IO to the only user that needs it.

With that done, update current users and deduplicate existing code.

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