File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -557,9 +557,6 @@ const char *pinctrl_generic_get_group_name(struct pinctrl_dev *pctldev,
557
557
if (!group )
558
558
return NULL ;
559
559
560
- if (group -> name )
561
- return group -> name ;
562
-
563
560
return group -> grp .name ;
564
561
}
565
562
EXPORT_SYMBOL_GPL (pinctrl_generic_get_group_name );
@@ -586,12 +583,6 @@ int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev,
586
583
return - EINVAL ;
587
584
}
588
585
589
- if (group -> pins ) {
590
- * pins = group -> pins ;
591
- * num_pins = group -> num_pins ;
592
- return 0 ;
593
- }
594
-
595
586
* pins = group -> grp .pins ;
596
587
* num_pins = group -> grp .npins ;
597
588
Original file line number Diff line number Diff line change @@ -199,26 +199,17 @@ struct pinctrl_maps {
199
199
/**
200
200
* struct group_desc - generic pin group descriptor
201
201
* @grp: generic data of the pin group (name and pins)
202
- * @name: name of the pin group
203
- * @pins: array of pins that belong to the group
204
- * @num_pins: number of pins in the group
205
202
* @data: pin controller driver specific data
206
203
*/
207
204
struct group_desc {
208
205
struct pingroup grp ;
209
- const char * name ;
210
- const unsigned int * pins ;
211
- int num_pins ;
212
206
void * data ;
213
207
};
214
208
215
209
/* Convenience macro to define a generic pin group descriptor */
216
210
#define PINCTRL_GROUP_DESC (_name , _pins , _num_pins , _data ) \
217
211
(struct group_desc) { \
218
212
.grp = PINCTRL_PINGROUP(_name, _pins, _num_pins), \
219
- .name = _name, \
220
- .pins = _pins, \
221
- .num_pins = _num_pins, \
222
213
.data = _data, \
223
214
}
224
215
You can’t perform that action at this time.
0 commit comments