Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: abx500: Fix type of 'argument' variable

The argument variable is assigned the return value of
pinconf_to_config_argument(), which returns a u32. Change its type from
enum pin_config_param to unsigned int to correctly store the configuration
argument.

Fixes: 03b054e9696c ("pinctrl: Pass all configs to driver on pin_config_set()")
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Yu-Chun Lin and committed by
Linus Walleij
34006f77 e309dbd5

+1 -1
+1 -1
drivers/pinctrl/nomadik/pinctrl-abx500.c
··· 852 852 int ret = -EINVAL; 853 853 int i; 854 854 enum pin_config_param param; 855 - enum pin_config_param argument; 855 + unsigned int argument; 856 856 857 857 for (i = 0; i < num_configs; i++) { 858 858 param = pinconf_to_config_param(configs[i]);