diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-12-09 21:19:51 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-09 16:17:57 +0000 |
commit | 5cb2f03c67265922c66e20270d4fd669a661da82 (patch) | |
tree | 27bb75c1371c0361fa830af66a546a8cd45ec094 /drivers/regulator | |
parent | 251ce318df3c07dbb3e484378a136a29e2f9bec1 (diff) | |
download | linux-stable-5cb2f03c67265922c66e20270d4fd669a661da82.tar.gz linux-stable-5cb2f03c67265922c66e20270d4fd669a661da82.tar.bz2 linux-stable-5cb2f03c67265922c66e20270d4fd669a661da82.zip |
regulator: rk808: Fix sparse non static symbol warnings
Fixes the following sparse warnings:
drivers/regulator/rk808-regulator.c:100:5: warning:
symbol 'rk808_set_suspend_voltage' was not declared. Should it be static?
drivers/regulator/rk808-regulator.c:115:5: warning:
symbol 'rk808_set_suspend_enable' was not declared. Should it be static?
drivers/regulator/rk808-regulator.c:126:5: warning:
symbol 'rk808_set_suspend_disable' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/rk808-regulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 8d1dc48ed8a9..33042ebd4648 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -97,7 +97,7 @@ static int rk808_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay) RK808_RAMP_RATE_MASK, ramp_value); } -int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) +static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) { unsigned int reg; int sel = regulator_map_voltage_linear_range(rdev, uv, uv); @@ -112,7 +112,7 @@ int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) sel); } -int rk808_set_suspend_enable(struct regulator_dev *rdev) +static int rk808_set_suspend_enable(struct regulator_dev *rdev) { unsigned int reg; @@ -123,7 +123,7 @@ int rk808_set_suspend_enable(struct regulator_dev *rdev) 0); } -int rk808_set_suspend_disable(struct regulator_dev *rdev) +static int rk808_set_suspend_disable(struct regulator_dev *rdev) { unsigned int reg; |