regulator: palmas: fix build warnings
Laxman Dewangan [Thu, 4 Apr 2013 09:07:37 +0000 (14:07 +0530)]
Fix following build warnings:

drivers/regulator/palmas-regulator.c: In function 'palmas_disable_smps10_boost':
drivers/regulator/palmas-regulator.c:1035:6: warning: unused variable 'i' [-Wunused-variable]
drivers/regulator/palmas-regulator.c:1032:15: warning: unused variable 'reg' [-Wunused-variable]
drivers/regulator/palmas-regulator.c: In function 'palmas_enable_smps10_boost':
drivers/regulator/palmas-regulator.c:1052:6: warning: unused variable 'i' [-Wunused-variable]
drivers/regulator/palmas-regulator.c: In function 'palmas_enable_ldo8_track':
drivers/regulator/palmas-regulator.c:1077:6: warning: unused variable 'i' [-Wunused-variable]

Change-Id: If0337f5acc6c30e3e13be47b8486f18fb4f684b2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/216441
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/regulator/palmas-regulator.c

index 94bd0e7..383eeb2 100644 (file)
@@ -1029,10 +1029,8 @@ static int palmas_extreg_init(struct palmas *palmas, int id,
 
 static void palmas_disable_smps10_boost(struct palmas *palmas)
 {
-       unsigned int reg;
        unsigned int addr;
        int ret;
-       int i;
 
        addr = palmas_regs_info[PALMAS_REG_SMPS10].ctrl_addr;
 
@@ -1049,7 +1047,6 @@ static void palmas_enable_smps10_boost(struct palmas *palmas)
        unsigned int reg;
        unsigned int addr;
        int ret;
-       int i;
 
        addr = palmas_regs_info[PALMAS_REG_SMPS10].ctrl_addr;
 
@@ -1074,7 +1071,6 @@ static void palmas_enable_ldo8_track(struct palmas *palmas)
        unsigned int reg;
        unsigned int addr;
        int ret;
-       int i;
 
        addr = palmas_regs_info[PALMAS_REG_LDO8].ctrl_addr;