File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -474,9 +474,8 @@ enum {
474
474
#undef WPCM450_GRP
475
475
};
476
476
477
- static struct group_desc wpcm450_groups [] = {
478
- #define WPCM450_GRP (x ) { .name = #x , .pins = x ## _pins, \
479
- .num_pins = ARRAY_SIZE(x ## _pins) }
477
+ static struct pingroup wpcm450_groups [] = {
478
+ #define WPCM450_GRP (x ) PINCTRL_PINGROUP (#x , x ## _pins, ARRAY_SIZE(x ## _pins))
480
479
WPCM450_GRPS
481
480
#undef WPCM450_GRP
482
481
};
@@ -852,7 +851,7 @@ static int wpcm450_get_group_pins(struct pinctrl_dev *pctldev,
852
851
const unsigned int * * pins ,
853
852
unsigned int * npins )
854
853
{
855
- * npins = wpcm450_groups [selector ].num_pins ;
854
+ * npins = wpcm450_groups [selector ].npins ;
856
855
* pins = wpcm450_groups [selector ].pins ;
857
856
858
857
return 0 ;
@@ -901,7 +900,7 @@ static int wpcm450_pinmux_set_mux(struct pinctrl_dev *pctldev,
901
900
struct wpcm450_pinctrl * pctrl = pinctrl_dev_get_drvdata (pctldev );
902
901
903
902
wpcm450_setfunc (pctrl -> gcr_regmap , wpcm450_groups [group ].pins ,
904
- wpcm450_groups [group ].num_pins , function );
903
+ wpcm450_groups [group ].npins , function );
905
904
906
905
return 0 ;
907
906
}
You can’t perform that action at this time.
0 commit comments