summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/tps65910.h
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-07-11 19:44:13 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-12 18:05:15 +0100
commitfaa95fde43f758d0a9e0e3d8751dac79aae1f08d (patch)
treeb5a74300502be94a5cb9d7235d71f8cedd2a7d91 /include/linux/mfd/tps65910.h
parentcb74685ecb394f8af48a9c49c0a5db2ab5383c33 (diff)
downloadop-kernel-dev-faa95fde43f758d0a9e0e3d8751dac79aae1f08d.zip
op-kernel-dev-faa95fde43f758d0a9e0e3d8751dac79aae1f08d.tar.gz
regulator: tps65910: Remvoe tps65910_reg_[read|modify_bits|read_locked|write_locked] functions
The tps65910 mfd driver has been converted to regmap APIs. This patch adds tps65910_reg_update_bits() in include/linux/mfd/tps65910.h. Thus we can use tps65910_reg_read/tps65910_reg_write/tps65910_reg_update_bits directly and remove tps65910_reg_[read|modify_bits|read_locked|write_locked] functions. With this change, we can also remove the mutex in struct tps65910_reg. Signed-off-by: Axel Lin <axel.lin@gmail.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd/tps65910.h')
-rw-r--r--include/linux/mfd/tps65910.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
index c5f8060..1aca1fb 100644
--- a/include/linux/mfd/tps65910.h
+++ b/include/linux/mfd/tps65910.h
@@ -882,4 +882,10 @@ static inline int tps65910_reg_clear_bits(struct tps65910 *tps65910, u8 reg,
return regmap_update_bits(tps65910->regmap, reg, mask, 0);
}
+static inline int tps65910_reg_update_bits(struct tps65910 *tps65910, u8 reg,
+ u8 mask, u8 val)
+{
+ return regmap_update_bits(tps65910->regmap, reg, mask, val);
+}
+
#endif /* __LINUX_MFD_TPS65910_H */
OpenPOWER on IntegriCloud