summaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown2013-05-08 14:55:23 +0200
committerMark Brown2013-05-12 16:46:47 +0200
commit154881e59b8dbf84121e3e78c4e613e840752aa9 (patch)
tree882edae69649d9dc69bbd1d172b298db17d16ed5 /include/linux/regmap.h
parentregmap: Add support for discarding parts of the register cache (diff)
downloadkernel-qcow2-linux-154881e59b8dbf84121e3e78c4e613e840752aa9.tar.gz
kernel-qcow2-linux-154881e59b8dbf84121e3e78c4e613e840752aa9.tar.xz
kernel-qcow2-linux-154881e59b8dbf84121e3e78c4e613e840752aa9.zip
regmap: Make regmap_check_range_table() a public API
Allow drivers to use an access table as part of their implementation. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 5067ee94eb92..d6f3221e29d4 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -400,6 +400,9 @@ 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);