regulator: Fix the argument of calling regulator_mode_constrain
authorAxel Lin <axel.lin@gmail.com>
Fri, 1 Apr 2011 10:25:25 +0000 (18:25 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
commit22c51b47aa7cded7e4768540ebbbfddc91e31d90
treefb6fc8495c66fb4b0253e4ba0b3843c8f6e10d97
parent1a39962fc4d1fccdf45fef2656b37acbae5fa793
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)>
drivers/regulator/core.c