Skip to content
Unverified Commit bd941dfa authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Mark Brown
Browse files

regmap: Constify static regmap_bus structs



The only usage of these is to pass their address to __regmap_init() or
__devm_regmap_init(), both which takes pointers to const struct
regmap_bus. Make them const to allow the compiler to put them in
read-only memory.

Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20220330214110.36337-1-rikard.falkeborn@gmail.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 31231092
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