pinctrl: max77620: Remove an unused fields in struct max77620_pin_info and max77620_p...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 1 Apr 2024 17:30:05 +0000 (19:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2024 19:03:25 +0000 (21:03 +0200)
commit922c86f8d3ad6c85142be3b8317f0e28a794116c
treea21c1cf836106ec9ccf180c9b3bf0249ed21ab95
parente798845d685e0ca652d4fd954a81edd1626f235d
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>
drivers/pinctrl/pinctrl-max77620.c