diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-26 04:34:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-08 06:38:15 -0500 |
commit | 8ae0d7e8a918e9603748abe9b31984fc5d96abb3 (patch) | |
tree | 329564b9bdc3cac89a3ac1586c9e5812ab21bf1c /include/linux/regmap.h | |
parent | 1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff) |
regmap: Track if the register cache is dirty and suppress unneeded syncs
Allow drivers to optimise out the register cache sync if they didn't need
to do one. If the hardware is desynced from the register cache (by power
loss for example) then the driver should call regcache_mark_dirty() to
let the core know about this.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 690276a642cf..32043a9749e6 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -143,5 +143,6 @@ int regmap_update_bits(struct regmap *map, unsigned int reg, | |||
143 | int regcache_sync(struct regmap *map); | 143 | int regcache_sync(struct regmap *map); |
144 | void regcache_cache_only(struct regmap *map, bool enable); | 144 | void regcache_cache_only(struct regmap *map, bool enable); |
145 | void regcache_cache_bypass(struct regmap *map, bool enable); | 145 | void regcache_cache_bypass(struct regmap *map, bool enable); |
146 | void regcache_mark_dirty(struct regmap *map); | ||
146 | 147 | ||
147 | #endif | 148 | #endif |