diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-05-12 21:01:40 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-05-25 18:10:05 +0300 |
commit | f56b273cd845a1139f8e37437367bca314e67b1c (patch) | |
tree | f18c31d57055cb8b6d10dc10dc7aa2248bec6729 /include/dt-bindings/pinctrl | |
parent | 9b882b73d37932a5ba20d7fdcbe6e3191d9582cd (diff) | |
download | linux-f56b273cd845a1139f8e37437367bca314e67b1c.tar.xz |
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 'include/dt-bindings/pinctrl')
0 files changed, 0 insertions, 0 deletions