Home
last modified time | relevance | path

Searched hist:"036 e126c72eb29b9464e5868c1ac86f8fd9c8a80" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel.cdiff 036e126c72eb29b9464e5868c1ac86f8fd9c8a80 Thu Jan 07 13:01:57 CST 2021 Andy Shevchenko <andriy.shevchenko@linux.intel.com> pinctrl: intel: Split intel_pinctrl_add_padgroups() for better maintenance

Currently the intel_pinctrl_add_padgroups() is twisted a bit due to
a different nature of the pin control hardware implementations. Thus,
its maintenance is a bit hard. Besides that some pieces of code
are run on all hardware and make this code slightly inefficient,
and moreover, validation for one case is done in a wrong time in a flow
which makes it even slower.

Split intel_pinctrl_add_padgroups() to two functions, one per hardware
implementation, for better maintenance and readability.

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