diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-05-12 20:01:40 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-05-25 17:10:05 +0200 |
commit | f56b273cd845a1139f8e37437367bca314e67b1c (patch) | |
tree | f18c31d57055cb8b6d10dc10dc7aa2248bec6729 /drivers/pinctrl/pinctrl-lantiq.h | |
parent | 9b882b73d37932a5ba20d7fdcbe6e3191d9582cd (diff) |
pinctrl: at91: Constify struct at91_pinctrl_mux_ops
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 <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210512180140.33293-1-rikard.falkeborn@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-lantiq.h')
0 files changed, 0 insertions, 0 deletions