[PATCH] pinctrl: nuvoton: npcm7xx: Constify static ops structs

Linus Walleij linus.walleij at linaro.org
Wed Sep 30 18:38:13 AEST 2020


On Sat, Sep 26, 2020 at 10:23 PM Rikard Falkeborn
<rikard.falkeborn at gmail.com> 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 at gmail.com>

Patch applied.

Yours,
Linus Walleij


More information about the openbmc mailing list