Re: [PATCH 1/1] pinctrl: actions: pinctrl-s500: Constify s500_padinfo[]

From: Linus Walleij
Date: Fri Dec 04 2020 - 03:08:14 EST


On Wed, Nov 18, 2020 at 7:10 PM Cristian Ciocaltea
<cristian.ciocaltea@xxxxxxxxx> 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@xxxxxxxxx>

Patch applied.

Yours,
Linus Walleij