mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 00:29:35 +08:00
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: 03b054e969 ("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>
This commit is contained in:
committed by
Linus Walleij
parent
e309dbd523
commit
34006f7789
@@ -852,7 +852,7 @@ static int abx500_pin_config_set(struct pinctrl_dev *pctldev,
|
||||
int ret = -EINVAL;
|
||||
int i;
|
||||
enum pin_config_param param;
|
||||
enum pin_config_param argument;
|
||||
unsigned int argument;
|
||||
|
||||
for (i = 0; i < num_configs; i++) {
|
||||
param = pinconf_to_config_param(configs[i]);
|
||||
|
||||
Reference in New Issue
Block a user