Skip to content

Commit a95e2bc

Browse files
tititiou36linusw
authored andcommitted
pinctrl: pinctrl-single: Remove some unused fields in struct pcs_function
In "struct pcs_function", the 'pgnames' and 'npgnames' fields are unused. This is a left-over from commit 571aec4 ("pinctrl: single: Use generic pinmux helpers for managing functions"); Remove them. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <[email protected]> Message-ID: <a6b653642298d35b1e3656e9bfc6d1b322fbbe68.1712004518.git.christophe.jaillet@wanadoo.fr> Signed-off-by: Linus Walleij <[email protected]>
1 parent 922c86f commit a95e2bc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/pinctrl/pinctrl-single.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ struct pcs_conf_type {
8181
* @name: pinctrl function name
8282
* @vals: register and vals array
8383
* @nvals: number of entries in vals array
84-
* @pgnames: array of pingroup names the function uses
85-
* @npgnames: number of pingroup names the function uses
8684
* @conf: array of pin configurations
8785
* @nconfs: number of pin configurations available
8886
* @node: list node
@@ -91,8 +89,6 @@ struct pcs_function {
9189
const char *name;
9290
struct pcs_func_vals *vals;
9391
unsigned nvals;
94-
const char **pgnames;
95-
int npgnames;
9692
struct pcs_conf_vals *conf;
9793
int nconfs;
9894
struct list_head node;

0 commit comments

Comments
 (0)