pinctrl: s32cc: refactor pin config parsing
authorChester Lin <clin@suse.com>
Mon, 27 Mar 2023 06:27:51 +0000 (14:27 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Mar 2023 21:35:00 +0000 (23:35 +0200)
commit48b016cbb2f48ce4cbefd91f63a0d0dded975932
treef5ff11deca5fd93c6619ad9ef23b68967cc0aea9
parent08b71a71f315bbb25608abc924ac209d1e079683
pinctrl: s32cc: refactor pin config parsing

Move common codes into smaller inline functions and remove argument checks
that are not actually used by pull up/down bits in the S32 MSCR register.

Signed-off-by: Chester Lin <clin@suse.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230327062754.3326-3-clin@suse.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nxp/pinctrl-s32cc.c