diff options
author | Jin Park <jinyoungp@nvidia.com> | 2011-06-25 17:00:03 +0900 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-07-07 12:20:22 -0700 |
commit | 3947af9e374a97c4863df2cc3f86633cbf850cae (patch) | |
tree | 0e0096d346b8f3459efb6235e8a28b21a4f270d9 /include | |
parent | 3156bcbe9b2d962402f862f2d60ff0464f004c84 (diff) |
arm: mfd/regulator: tps80031: Adding force_update for status register
The state register is read and write register, if read, it returned
current state, not current written value in register.
So if it want to write the value into state register, it must unconditional
write the value, don't use update(read and compare and then write).
Bug 838189
Change-Id: I2555875a822f159e664b0834af2d00073c859acd
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/38396
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/tps80031.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/tps80031.h b/include/linux/mfd/tps80031.h index 0daf37a99cf1..da5a6f62bf98 100644 --- a/include/linux/mfd/tps80031.h +++ b/include/linux/mfd/tps80031.h @@ -129,6 +129,8 @@ extern int tps80031_clr_bits(struct device *dev, int sid, int reg, uint8_t bit_mask); extern int tps80031_update(struct device *dev, int sid, int reg, uint8_t val, uint8_t mask); +extern int tps80031_force_update(struct device *dev, int sid, int reg, + uint8_t val, uint8_t mask); extern int tps80031_power_off(void); #endif /*__LINUX_MFD_TPS80031_H */ |