diff options
Diffstat (limited to 'drivers/power/palmas.c')
-rw-r--r-- | drivers/power/palmas.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/palmas.c b/drivers/power/palmas.c index 23a5dc7580..64278866f1 100644 --- a/drivers/power/palmas.c +++ b/drivers/power/palmas.c @@ -41,7 +41,7 @@ int lp873x_mmc1_poweron_ldo(uint voltage) } #endif -int palmas_mmc1_poweron_ldo(uint voltage) +int palmas_mmc1_poweron_ldo(uint ldo_volt, uint ldo_ctrl, uint voltage) { u8 val = 0; @@ -50,13 +50,13 @@ int palmas_mmc1_poweron_ldo(uint voltage) * Currently valid for the dra7xx_evm board: * Set TPS659038 LDO1 to 3.0 V */ - if (palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, voltage)) { + if (palmas_i2c_write_u8(TPS65903X_CHIP_P1, ldo_volt, voltage)) { printf("tps65903x: could not set LDO1 voltage.\n"); return 1; } /* TURN ON LDO1 */ val = RSC_MODE_SLEEP | RSC_MODE_ACTIVE; - if (palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_CTRL, val)) { + if (palmas_i2c_write_u8(TPS65903X_CHIP_P1, ldo_ctrl, val)) { printf("tps65903x: could not turn on LDO1.\n"); return 1; } |