Thread (2 messages) 2 messages, 2 authors, 2021-05-25

Re: [PATCH] pinctrl: at91: Constify struct at91_pinctrl_mux_ops

From: Linus Walleij <hidden>
Date: 2021-05-25 00:10:14
Also in: linux-arm-kernel, lkml

On Wed, May 12, 2021 at 8:01 PM Rikard Falkeborn
[off-list ref] wrote:
The at91_pinctrl_mux_ops struct is never modified by the driver. Make it
const wherever it is possible to allow the compiler to put the static
variables in read-only memory. Note that sam9x60_ops was already const,
but the const was cast away when the return value of of_match_device() was
cast to a pointer to a non-const struct at91_pinctrl_mux_ops.

Signed-off-by: Rikard Falkeborn <redacted>
Patch applied.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help