Skip to content
Commit 6e28aaab authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Linus Walleij
Browse files

pinctrl: rk805: Make structures constant



Static structures rk805_pinctrl_desc and rk805_gpio_chip, of types
gpio_chip and pinctrl_desc respectively, are not used except to be
copied into the fields of a different variable. Hence make
rk805_pinctrl_desc and rk805_gpio_chip both constant to protect them
from unintended modification.
Issue found with Coccinelle.

Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190819075757.1753-1-nishkadg.linux@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a4873acc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment