Home
last modified time | relevance | path

Searched hist:"087 c09c2d273823bac906d590280f7e8052f7eff" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/regulator/
H A Ddummy.cdiff 087c09c2d273823bac906d590280f7e8052f7eff Sun Sep 13 10:41:10 CEST 2020 Rikard Falkeborn <rikard.falkeborn@gmail.com> regulator: dummy: Constify dummy_initdata and dummy_ops

The only usage of dummy_initdata is to assign its address to the
init_data field of the regulator_config struct and the only usage
dummy_ops is to assign its address to the ops field in the
regulator_desc struct, both which are const pointers. Make them const to
allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200913084114.8851-2-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>