Home
last modified time | relevance | path

Searched hist:"72 f2746c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Dpca9450-regulator.c72f2746c Sun Sep 13 03:41:13 CDT 2020 Rikard Falkeborn <rikard.falkeborn@gmail.com> regulator: pca9450: Constify static regulator_ops

The only usages of these is to assign their address to the ops field in
the regulator_desc struct, which is a const pointer. 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-5-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
72f2746c Sun Sep 13 03:41:13 CDT 2020 Rikard Falkeborn <rikard.falkeborn@gmail.com> regulator: pca9450: Constify static regulator_ops

The only usages of these is to assign their address to the ops field in
the regulator_desc struct, which is a const pointer. 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-5-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>