aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regmap.h12
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);
394int regcache_sync(struct regmap *map); 394int regcache_sync(struct regmap *map);
395int regcache_sync_region(struct regmap *map, unsigned int min, 395int regcache_sync_region(struct regmap *map, unsigned int min,
396 unsigned int max); 396 unsigned int max);
397int regcache_drop_region(struct regmap *map, unsigned int min,
398 unsigned int max);
397void regcache_cache_only(struct regmap *map, bool enable); 399void regcache_cache_only(struct regmap *map, bool enable);
398void regcache_cache_bypass(struct regmap *map, bool enable); 400void regcache_cache_bypass(struct regmap *map, bool enable);
399void regcache_mark_dirty(struct regmap *map); 401void regcache_mark_dirty(struct regmap *map);
400 402
403bool regmap_check_range_table(struct regmap *map, unsigned int reg,
404 const struct regmap_access_table *table);
405
401int regmap_register_patch(struct regmap *map, const struct reg_default *regs, 406int regmap_register_patch(struct regmap *map, const struct reg_default *regs,
402 int num_regs); 407 int num_regs);
403 408
@@ -562,6 +567,13 @@ static inline int regcache_sync_region(struct regmap *map, unsigned int min,
562 return -EINVAL; 567 return -EINVAL;
563} 568}
564 569
570static inline int regcache_drop_region(struct regmap *map, unsigned int min,
571 unsigned int max)
572{
573 WARN_ONCE(1, "regmap API is disabled");
574 return -EINVAL;
575}
576
565static inline void regcache_cache_only(struct regmap *map, bool enable) 577static inline void regcache_cache_only(struct regmap *map, bool enable)
566{ 578{
567 WARN_ONCE(1, "regmap API is disabled"); 579 WARN_ONCE(1, "regmap API is disabled");