]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: stm32: Rework stm32_pconf_parse_conf()
authorAntonio Borneo <antonio.borneo@foss.st.com>
Thu, 23 Oct 2025 13:26:53 +0000 (15:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Oct 2025 09:43:01 +0000 (10:43 +0100)
commit5a0398cc2a364e8c314a9c6361680a95d7d9b5d7
tree92d1e72f2515f8a4f88093e676ad5e16b422e820
parent5c284d086bcf3bcfe54debb44a18fb218f91c010
pinctrl: stm32: Rework stm32_pconf_parse_conf()

Reduce the number of parameters of the function by moving inside
the function the decoding of the field 'config'.

While there:
- change the type of 'param' to 'unsigned int' to handle the extra
  values not in 'enum pin_config_param';
- change the type of 'arg' to 'u32' to avoid additional conversions
  and align to 'u32' the corresponding param of __stm32_gpio_set().

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c