Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: sky81452: Constify sky81452_reg_ops

sky81452_reg_ops is never changed, make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
c7e3ddd1 5d7ebba3

+1 -1
+1 -1
drivers/regulator/sky81452-regulator.c
··· 34 34 #define SKY81452_LEN 0x40 35 35 #define SKY81452_LOUT 0x1F 36 36 37 - static struct regulator_ops sky81452_reg_ops = { 37 + static const struct regulator_ops sky81452_reg_ops = { 38 38 .list_voltage = regulator_list_voltage_linear_range, 39 39 .map_voltage = regulator_map_voltage_linear_range, 40 40 .get_voltage_sel = regulator_get_voltage_sel_regmap,