Searched hist:cd535346d4363dedaf1b4c7ba071768287817ccb (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-intel.c | diff cd535346d4363dedaf1b4c7ba071768287817ccb Mon Dec 19 06:32:06 CST 2022 Andy Shevchenko <andriy.shevchenko@linux.intel.com> pinctrl: intel: Deduplicate some code in intel_config_set_pull()
First part is to assign default argument for all cases, since bias disablement doesn't use it anyway.
Second part is to clear all bits in the bias setting and depending on the argument and parameter set them as asked.
While at it, add break statement to the default cases.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
|