Re: [PATCH] pinctrl: nuvoton: npcm7xx: Constify static ops structs
From: Linus Walleij
Date: Wed Sep 30 2020 - 04:38:28 EST
On Sat, Sep 26, 2020 at 10:23 PM Rikard Falkeborn
<rikard.falkeborn@xxxxxxxxx> wrote:
> The only usage of these structs is to assign their address to various
> ops fields in the pinctrl_desc struct, which are const pointers. Make
> them const to allow the compiler to put them in read-only memory.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>
Patch applied.
Yours,
Linus Walleij