diff options
| author | Mark Brown <broonie@linaro.org> | 2013-06-30 15:40:01 +0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-06-30 15:40:01 +0400 |
| commit | feff98f5507f98c0422252caec41c3be9e6b6399 (patch) | |
| tree | d014206d6ecc095ceb8e03ea2b17b42bf1ce786a /include/linux | |
| parent | 9e895ace5d82df8929b16f58e9f515f6d54ab82d (diff) | |
| parent | d6814a7dafa590ec5fe0597922ea76354f9bec59 (diff) | |
| download | linux-feff98f5507f98c0422252caec41c3be9e6b6399.tar.xz | |
Merge remote-tracking branch 'regmap/topic/cache' into regmap-next
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regmap.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 02d84e24b7c2..d6f3221e29d4 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -394,10 +394,15 @@ bool regmap_can_raw_write(struct regmap *map); int regcache_sync(struct regmap *map); int regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max); +int regcache_drop_region(struct regmap *map, unsigned int min, + unsigned int max); void regcache_cache_only(struct regmap *map, bool enable); void regcache_cache_bypass(struct regmap *map, bool enable); void regcache_mark_dirty(struct regmap *map); +bool regmap_check_range_table(struct regmap *map, unsigned int reg, + const struct regmap_access_table *table); + int regmap_register_patch(struct regmap *map, const struct reg_default *regs, int num_regs); @@ -562,6 +567,13 @@ static inline int regcache_sync_region(struct regmap *map, unsigned int min, return -EINVAL; } +static inline int regcache_drop_region(struct regmap *map, unsigned int min, + unsigned int max) +{ + WARN_ONCE(1, "regmap API is disabled"); + return -EINVAL; +} + static inline void regcache_cache_only(struct regmap *map, bool enable) { WARN_ONCE(1, "regmap API is disabled"); |
