Skip to content

Commit 7d7883d

Browse files
Bartosz Golaszewskilinusw
authored andcommitted
pinctrl: airoha: 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]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent cc154c0 commit 7d7883d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/pinctrl/mediatek/pinctrl-airoha.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,11 +2907,9 @@ static int airoha_pinctrl_probe(struct platform_device *pdev)
29072907
const struct airoha_pinctrl_func *func;
29082908

29092909
func = &airoha_pinctrl_funcs[i];
2910-
err = pinmux_generic_add_function(pinctrl->ctrl,
2911-
func->desc.func.name,
2912-
func->desc.func.groups,
2913-
func->desc.func.ngroups,
2914-
(void *)func);
2910+
err = pinmux_generic_add_pinfunction(pinctrl->ctrl,
2911+
&func->desc.func,
2912+
(void *)func);
29152913
if (err < 0) {
29162914
dev_err(dev, "Failed to register function %s\n",
29172915
func->desc.func.name);

0 commit comments

Comments
 (0)