File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -110,19 +110,12 @@ static const struct resource tps65219_regulator_resources[] = {
110
110
};
111
111
112
112
static const struct mfd_cell tps65219_cells [] = {
113
- {
114
- .name = "tps65219-regulator" ,
115
- .resources = tps65219_regulator_resources ,
116
- .num_resources = ARRAY_SIZE (tps65219_regulator_resources ),
117
- },
118
- { .name = "tps65219-gpio" , },
113
+ MFD_CELL_RES ("tps65219-regulator" , tps65219_regulator_resources ),
114
+ MFD_CELL_NAME ("tps65219-gpio" ),
119
115
};
120
116
121
- static const struct mfd_cell tps65219_pwrbutton_cell = {
122
- .name = "tps65219-pwrbutton" ,
123
- .resources = tps65219_pwrbutton_resources ,
124
- .num_resources = ARRAY_SIZE (tps65219_pwrbutton_resources ),
125
- };
117
+ static const struct mfd_cell tps65219_pwrbutton_cell =
118
+ MFD_CELL_RES ("tps65219-pwrbutton" , tps65219_pwrbutton_resources );
126
119
127
120
static const struct regmap_config tps65219_regmap_config = {
128
121
.reg_bits = 8 ,
You can’t perform that action at this time.
0 commit comments