Skip to content

Commit 0bbd90c

Browse files
Bartosz Golaszewskilinusw
authored andcommitted
pinctrl: ingenic: use pinmux_generic_add_pinfunction()
Instead of passing individual fields of struct pinfunction to pinmux_generic_add_function(), use pinmux_generic_add_pinfunction() and pass the entire structure directly. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent adb9e21 commit 0bbd90c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4574,9 +4574,8 @@ static int __init ingenic_pinctrl_probe(struct platform_device *pdev)
45744574
const struct function_desc *function = &chip_info->functions[i];
45754575
const struct pinfunction *func = &function->func;
45764576

4577-
err = pinmux_generic_add_function(jzpc->pctl, func->name,
4578-
func->groups, func->ngroups,
4579-
function->data);
4577+
err = pinmux_generic_add_pinfunction(jzpc->pctl, func,
4578+
function->data);
45804579
if (err < 0) {
45814580
dev_err(dev, "Failed to register function %s\n", func->name);
45824581
return err;

0 commit comments

Comments
 (0)