Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211190321.307330-14-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Andy Shevchenko and committed by
Linus Walleij
db4a9133 fcbcfe5c

-18
-9
drivers/pinctrl/core.c
··· 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); ··· 581 584 dev_err(pctldev->dev, "%s could not find pingroup%i\n", 582 585 __func__, selector); 583 586 return -EINVAL; 584 - } 585 - 586 - if (group->pins) { 587 - *pins = group->pins; 588 - *num_pins = group->num_pins; 589 - return 0; 590 587 } 591 588 592 589 *pins = group->grp.pins;
-9
drivers/pinctrl/core.h
··· 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 ··· 210 216 #define PINCTRL_GROUP_DESC(_name, _pins, _num_pins, _data) \ 211 217 (struct group_desc) { \ 212 218 .grp = PINCTRL_PINGROUP(_name, _pins, _num_pins), \ 213 - .name = _name, \ 214 - .pins = _pins, \ 215 - .num_pins = _num_pins, \ 216 219 .data = _data, \ 217 220 } 218 221