From: Mark Brown Date: Tue, 24 Jun 2014 11:20:11 +0000 (+0100) Subject: Merge remote-tracking branch 'regulator/fix/palmas' into regulator-palmas X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c0c9cabcb30d9d3104d2482536a0f60376085f6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Merge remote-tracking branch 'regulator/fix/palmas' into regulator-palmas Conflicts: drivers/regulator/palmas-regulator.c --- 4c0c9cabcb30d9d3104d2482536a0f60376085f6 diff --cc drivers/regulator/palmas-regulator.c index 8fa651e998da,327788892cc9..7c8b4417d7d8 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c @@@ -465,7 -322,11 +465,11 @@@ static int palmas_set_mode_smps(struct pmic->current_reg_mode[id] = reg & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK; if (rail_enable) palmas_smps_write(pmic->palmas, - palmas_regs_info[id].ctrl_addr, reg); + ddata->palmas_regs_info[id].ctrl_addr, reg); + + /* Switch the enable value to ensure this is used for enable */ + pmic->desc[id].enable_val = pmic->current_reg_mode[id]; + return 0; }