diff options
author | Axel Lin <axel.lin@ingics.com> | 2017-05-28 02:02:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-06 15:04:32 -0400 |
commit | cb42b64838654df6e8767d2f4eb8b59dfcd414c5 (patch) | |
tree | 595d64910193cfa663909108c3538864a2879cd6 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
regulator: bd9571mwv: Statize local symbols
These functions are only used by this driver, make them static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/bd9571mwv-regulator.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-regulator.c index 8ba206fec31e..c67a83d53c4c 100644 --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c | |||
@@ -43,7 +43,7 @@ enum bd9571mwv_regulators { VD09, VD18, VD25, VD33, DVFS }; | |||
43 | .linear_min_sel = _lmin, \ | 43 | .linear_min_sel = _lmin, \ |
44 | } | 44 | } |
45 | 45 | ||
46 | int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev) | 46 | static int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev) |
47 | { | 47 | { |
48 | unsigned int val; | 48 | unsigned int val; |
49 | int ret; | 49 | int ret; |
@@ -55,8 +55,8 @@ int bd9571mwv_avs_get_moni_state(struct regulator_dev *rdev) | |||
55 | return val & BD9571MWV_AVS_SET_MONI_MASK; | 55 | return val & BD9571MWV_AVS_SET_MONI_MASK; |
56 | } | 56 | } |
57 | 57 | ||
58 | int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev, | 58 | static int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev, |
59 | unsigned int sel) | 59 | unsigned int sel) |
60 | { | 60 | { |
61 | int ret; | 61 | int ret; |
62 | 62 | ||
@@ -68,7 +68,7 @@ int bd9571mwv_avs_set_voltage_sel_regmap(struct regulator_dev *rdev, | |||
68 | rdev->desc->vsel_mask, sel); | 68 | rdev->desc->vsel_mask, sel); |
69 | } | 69 | } |
70 | 70 | ||
71 | int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev) | 71 | static int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev) |
72 | { | 72 | { |
73 | unsigned int val; | 73 | unsigned int val; |
74 | int ret; | 74 | int ret; |
@@ -87,8 +87,8 @@ int bd9571mwv_avs_get_voltage_sel_regmap(struct regulator_dev *rdev) | |||
87 | return val; | 87 | return val; |
88 | } | 88 | } |
89 | 89 | ||
90 | int bd9571mwv_reg_set_voltage_sel_regmap(struct regulator_dev *rdev, | 90 | static int bd9571mwv_reg_set_voltage_sel_regmap(struct regulator_dev *rdev, |
91 | unsigned int sel) | 91 | unsigned int sel) |
92 | { | 92 | { |
93 | return regmap_write_bits(rdev->regmap, BD9571MWV_DVFS_SETVID, | 93 | return regmap_write_bits(rdev->regmap, BD9571MWV_DVFS_SETVID, |
94 | rdev->desc->vsel_mask, sel); | 94 | rdev->desc->vsel_mask, sel); |