Skip to content

Commit

Permalink
pinctrl: pinmux: Remove unused members from struct function_desc
Browse files Browse the repository at this point in the history
All drivers are converted to use embedded struct pinfunction.
Remove unused members from struct function_desc.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240530085745.1539925-12-andy.shevchenko@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
andy-shev authored and linusw committed Jun 17, 2024
1 parent 6273a1b commit c501b78
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/pinctrl/pinmux.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,26 +134,17 @@ static inline void pinmux_init_device_debugfs(struct dentry *devroot,
/**
* struct function_desc - generic function descriptor
* @func: generic data of the pin function (name and groups of pins)
* @name: name of the function
* @group_names: array of pin group names
* @num_group_names: number of pin group names
* @data: pin controller driver specific data
*/
struct function_desc {
struct pinfunction func;
const char *name;
const char * const *group_names;
int num_group_names;
void *data;
};

/* Convenient macro to define a generic pin function descriptor */
#define PINCTRL_FUNCTION_DESC(_name, _grps, _num_grps, _data) \
(struct function_desc) { \
.func = PINCTRL_PINFUNCTION(_name, _grps, _num_grps), \
.name = _name, \
.group_names = _grps, \
.num_group_names = _num_grps, \
.data = _data, \
}

Expand Down

0 comments on commit c501b78

Please sign in to comment.