diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-04-01 06:25:25 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-05-27 05:34:36 -0400 |
commit | 22c51b47aa7cded7e4768540ebbbfddc91e31d90 (patch) | |
tree | fb6fc8495c66fb4b0253e4ba0b3843c8f6e10d97 /drivers/regulator | |
parent | 1a39962fc4d1fccdf45fef2656b37acbae5fa793 (diff) |
regulator: Fix the argument of calling regulator_mode_constrain
The second parameter of regulator_mode_constrain takes a pointer.
This patch fixes below warning:
drivers/regulator/core.c: In function 'regulator_set_mode':
drivers/regulator/core.c:2014: warning: passing argument 2 of 'regulator_mode_constrain' makes pointer from integer without a cast
drivers/regulator/core.c:200: note: expected 'int *' but argument is of type 'unsigned int'
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@vega.(none)>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 7104404a9fa7..a2728a498c3f 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2011,7 +2011,7 @@ int regulator_set_mode(struct regulator *regulator, unsigned int mode) | |||
2011 | } | 2011 | } |
2012 | 2012 | ||
2013 | /* constraints check */ | 2013 | /* constraints check */ |
2014 | ret = regulator_mode_constrain(rdev, mode); | 2014 | ret = regulator_mode_constrain(rdev, &mode); |
2015 | if (ret < 0) | 2015 | if (ret < 0) |
2016 | goto out; | 2016 | goto out; |
2017 | 2017 | ||