Commit db4a9133 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

pinctrl: core: Remove unused members from struct group_desc

All drivers are converted to use embedded struct pingroup.
Remove unused members from struct group_desc.
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211190321.307330-14-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent fcbcfe5c
...@@ -557,9 +557,6 @@ const char *pinctrl_generic_get_group_name(struct pinctrl_dev *pctldev, ...@@ -557,9 +557,6 @@ const char *pinctrl_generic_get_group_name(struct pinctrl_dev *pctldev,
if (!group) if (!group)
return NULL; return NULL;
if (group->name)
return group->name;
return group->grp.name; return group->grp.name;
} }
EXPORT_SYMBOL_GPL(pinctrl_generic_get_group_name); EXPORT_SYMBOL_GPL(pinctrl_generic_get_group_name);
...@@ -586,12 +583,6 @@ int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev, ...@@ -586,12 +583,6 @@ int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev,
return -EINVAL; return -EINVAL;
} }
if (group->pins) {
*pins = group->pins;
*num_pins = group->num_pins;
return 0;
}
*pins = group->grp.pins; *pins = group->grp.pins;
*num_pins = group->grp.npins; *num_pins = group->grp.npins;
......
...@@ -199,16 +199,10 @@ struct pinctrl_maps { ...@@ -199,16 +199,10 @@ struct pinctrl_maps {
/** /**
* struct group_desc - generic pin group descriptor * struct group_desc - generic pin group descriptor
* @grp: generic data of the pin group (name and pins) * @grp: generic data of the pin group (name and pins)
* @name: name of the pin group
* @pins: array of pins that belong to the group
* @num_pins: number of pins in the group
* @data: pin controller driver specific data * @data: pin controller driver specific data
*/ */
struct group_desc { struct group_desc {
struct pingroup grp; struct pingroup grp;
const char *name;
const unsigned int *pins;
int num_pins;
void *data; void *data;
}; };
...@@ -216,9 +210,6 @@ struct group_desc { ...@@ -216,9 +210,6 @@ struct group_desc {
#define PINCTRL_GROUP_DESC(_name, _pins, _num_pins, _data) \ #define PINCTRL_GROUP_DESC(_name, _pins, _num_pins, _data) \
(struct group_desc) { \ (struct group_desc) { \
.grp = PINCTRL_PINGROUP(_name, _pins, _num_pins), \ .grp = PINCTRL_PINGROUP(_name, _pins, _num_pins), \
.name = _name, \
.pins = _pins, \
.num_pins = _num_pins, \
.data = _data, \ .data = _data, \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment