summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorNancy Chen <Nancy.Chen@freescale.com>2011-11-02 14:38:27 -0500
committerJason Liu <r64343@freescale.com>2012-01-09 21:04:07 +0800
commitff994e5285152cc8641d725ee4ed63f48bf2e892 (patch)
tree049a6607cee406fa7e0524260ced7c0703440f5d /drivers/regulator
parent63bcce345b16984fe22e8e6bf6f8e6ee1acae6dd (diff)
ENGR00161292 [mx6q] Fix incompatible pointer warnings
Fix build warnings regarding initialization from incompatible pointer type. Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/anatop-regulator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 8eb76587c8fa..61ad1c2a7d26 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -27,12 +27,13 @@
#include <linux/regulator/driver.h>
#include <linux/regulator/anatop-regulator.h>
-static int anatop_set_voltage(struct regulator_dev *reg, int MiniV, int uv)
+static int anatop_set_voltage(struct regulator_dev *reg, int min_uV,
+ int max_uV, unsigned *selector)
{
struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg);
if (anatop_reg->rdata->set_voltage)
- return anatop_reg->rdata->set_voltage(anatop_reg, uv);
+ return anatop_reg->rdata->set_voltage(anatop_reg, max_uV);
else
return -ENOTSUPP;
}