]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: stpmic1: Add static const qualifier at peroper places
authorAxel Lin <axel.lin@ingics.com>
Wed, 23 Jan 2019 12:26:39 +0000 (20:26 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Jan 2019 15:51:46 +0000 (15:51 +0000)
commit7c027c66f2b529a1e298eed76adb9bd6509d5325
tree8c136b94fcff0aa4867b80c2add5ebb4693050dc
parent45b5d2b7a976309c31f13795ad63a9488d0d7bbd
regulator: stpmic1: Add static const qualifier at peroper places

The regulator_linear_range arrays and stpmic1_regulator_cfgs are only
accessed by this driver and the values are never changed so make them
static const. regulator_ops variables can also be const.
Also clean up a few empty lines in regulator_linear_range array.

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