diff options
author | Colin Patrick McCabe <cmccabe@nvidia.com> | 2011-10-20 14:44:17 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:22 -0800 |
commit | 9f655d719048c0eda67e041f365325f07ac0eef5 (patch) | |
tree | 2c27609462166c9f3ef58d1e028986827aa2fc0f /include | |
parent | db543c71362406d616fad89f11dff88e80ea71dd (diff) |
regmap: add regmap_update_bits_lazy
Add regmap_update_bits_lazy. Like regmap_update_bits, this performs a
read-modify-write cycle on a regmap register, but it skips the write if
nothing has changed.
Change-Id: Id075f711770a6bf15dea9ae085593fef268491ac
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/59460
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R93e1c3cf4a506cb17346f4e981a60350846a856e
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 60a65cd7e1a0..04e59205dec9 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -78,5 +78,7 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count); int regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val); +int regmap_update_bits_lazy(struct regmap *map, unsigned int reg, + unsigned int mask, unsigned int val); #endif |