Skip to content

Commit 922c86f

Browse files
tititiou36linusw
authored andcommitted
pinctrl: max77620: Remove an unused fields in struct max77620_pin_info and max77620_pctrl_info
In "struct max77620_pin_info", the 'pull_config' field is unused. In "struct max77620_pctrl_info", the 'pins_current_opt' field is unused. Remove them. On my x86_64 config, with allmodconfig, this shrinks the struct max77620_pctrl_info from 360 bytes to 296. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <[email protected]> Message-ID: <60af8968864ae4a83a76e589b39a2b1e1f65c9db.1711992588.git.christophe.jaillet@wanadoo.fr> Signed-off-by: Linus Walleij <[email protected]>
1 parent e798845 commit 922c86f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pinctrl/pinctrl-max77620.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ struct max77620_pingroup {
8888

8989
struct max77620_pin_info {
9090
enum max77620_pin_ppdrv drv_type;
91-
int pull_config;
9291
};
9392

9493
struct max77620_fps_config {
@@ -104,7 +103,6 @@ struct max77620_pctrl_info {
104103
struct device *dev;
105104
struct pinctrl_dev *pctl;
106105
struct regmap *rmap;
107-
int pins_current_opt[MAX77620_GPIO_NR];
108106
const struct max77620_pin_function *functions;
109107
unsigned int num_functions;
110108
const struct max77620_pingroup *pin_groups;

0 commit comments

Comments
 (0)