[PATCH 1/1] pinctrl: actions: pinctrl-s500: Constify s500_padinfo[]
Linus Walleij
linus.walleij at linaro.org
Fri Dec 4 03:07:00 EST 2020
On Wed, Nov 18, 2020 at 7:10 PM Cristian Ciocaltea
<cristian.ciocaltea at gmail.com> wrote:
> s500_padinfo[] is never modified and should be made 'const' to allow
> the compiler to optimize code generation, i.e. put it in the text
> section instead of the data section.
>
> Before:
> text data bss dec hex filename
> 12503 5088 0 17591 44b7 drivers/pinctrl/actions/pinctrl-s500.o
>
> After:
> text data bss dec hex filename
> 14435 3156 0 17591 44b7 drivers/pinctrl/actions/pinctrl-s500.o
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea at gmail.com>
Patch applied.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list