Messages in this thread | | | From | Linus Walleij <> | Date | Wed, 30 Sep 2020 10:38:13 +0200 | Subject | Re: [PATCH] pinctrl: nuvoton: npcm7xx: Constify static ops structs |
| |
On Sat, Sep 26, 2020 at 10:23 PM Rikard Falkeborn <rikard.falkeborn@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@gmail.com>
Patch applied.
Yours, Linus Walleij
| |