pinctrl: s32: refine error/return/config checks and simplify driver codes
authorChester Lin <clin@suse.com>
Mon, 27 Mar 2023 06:27:50 +0000 (14:27 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Mar 2023 21:34:24 +0000 (23:34 +0200)
commit08b71a71f315bbb25608abc924ac209d1e079683
tree4082f29fe5ba70f8c128fd2c530222beb48eaf2b
parent617385bb273e1b15958e8bb98df8c4c234ede5b8
pinctrl: s32: refine error/return/config checks and simplify driver codes

Improve error/return code handlings and config checks in order to have
better reliability and simplify driver codes such as removing/changing
improper macros, blanks, print formats and helper calls.

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