Skip to content

Commit 3b954b3

Browse files
committed
pinctrl: moorefield: Convert to use new memeber in struct intel_function
Convert driver to use generic data type and hence a new member in the struct intel_function. No functional change intended. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Mika Westerberg <[email protected]>
1 parent de82e6f commit 3b954b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pinctrl/intel/pinctrl-moorefield.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,16 +530,16 @@ static const char *mofld_get_function_name(struct pinctrl_dev *pctldev, unsigned
530530
{
531531
struct mofld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
532532

533-
return mp->functions[function].name;
533+
return mp->functions[function].func.name;
534534
}
535535

536536
static int mofld_get_function_groups(struct pinctrl_dev *pctldev, unsigned int function,
537537
const char * const **groups, unsigned int * const ngroups)
538538
{
539539
struct mofld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev);
540540

541-
*groups = mp->functions[function].groups;
542-
*ngroups = mp->functions[function].ngroups;
541+
*groups = mp->functions[function].func.groups;
542+
*ngroups = mp->functions[function].func.ngroups;
543543
return 0;
544544
}
545545

0 commit comments

Comments
 (0)