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:
parent
e309dbd523
commit
34006f7789
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue