summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm831x-core.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-03-12 17:33:56 +0100
committerMark Brown <broonie@kernel.org>2019-03-13 16:13:59 +0100
commitd48acfd0377f901f348b6c48bdcc03723f19d9e7 (patch)
tree93aa370cc6882e7b16dadd21a4ebd6b478a623bb /drivers/mfd/wm831x-core.c
parentregulator: wm8350: Select maximum current in specific range (diff)
downloadlinux-d48acfd0377f901f348b6c48bdcc03723f19d9e7.tar.xz
linux-d48acfd0377f901f348b6c48bdcc03723f19d9e7.zip
regulator: wm831x-isink: Convert to use regulator_set/get_current_limit_regmap
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/mfd/wm831x-core.c')
-rw-r--r--drivers/mfd/wm831x-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c
index e70d35ef5c6d..e865a1fd4bd5 100644
--- a/drivers/mfd/wm831x-core.c
+++ b/drivers/mfd/wm831x-core.c
@@ -33,7 +33,7 @@
/* Current settings - values are 2*2^(reg_val/4) microamps. These are
* exported since they are used by multiple drivers.
*/
-int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL + 1] = {
+const unsigned int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL + 1] = {
2,
2,
3,