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

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 <christophe.jaillet@wanadoo.fr>
Message-ID: <60af8968864ae4a83a76e589b39a2b1e1f65c9db.1711992588.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Christophe JAILLET and committed by
Linus Walleij
922c86f8 e798845d

-2
-2
drivers/pinctrl/pinctrl-max77620.c
··· 88 88 89 89 struct max77620_pin_info { 90 90 enum max77620_pin_ppdrv drv_type; 91 - int pull_config; 92 91 }; 93 92 94 93 struct max77620_fps_config { ··· 103 104 struct device *dev; 104 105 struct pinctrl_dev *pctl; 105 106 struct regmap *rmap; 106 - int pins_current_opt[MAX77620_GPIO_NR]; 107 107 const struct max77620_pin_function *functions; 108 108 unsigned int num_functions; 109 109 const struct max77620_pingroup *pin_groups;