diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2012-03-28 12:32:41 +0900 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-05-07 16:17:53 -0700 |
commit | 62780102a97ec81f8db2b3e9ceacf99843fb6530 (patch) | |
tree | 0f7005047fd043d5984a0ee78236ac256b46a5bc /drivers/regulator | |
parent | 4bcf4d1cb69470362fa2cbb7691d016513fa8e4d (diff) |
regulator: max77663: fix fps update condition
Fix fps update condition in max77663_regulator_set_fps().
Bug 930883
Change-Id: I2f57603320a91b2727932586fc3c66d9de347d64
signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/92707
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max77663-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77663-regulator.c b/drivers/regulator/max77663-regulator.c index c9001c0a3e9f..55d2526b4490 100644 --- a/drivers/regulator/max77663-regulator.c +++ b/drivers/regulator/max77663-regulator.c @@ -280,7 +280,7 @@ static int max77663_regulator_set_fps(struct max77663_regulator *reg) fps_mask |= FPS_PD_PERIOD_MASK; } - if (fps_val) + if (fps_val || fps_mask) ret = max77663_regulator_cache_write(reg, reg->regs[FPS_REG].addr, fps_mask, fps_val, ®->regs[FPS_REG].val); |