summaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-23 19:49:43 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-01 11:10:30 +0000
commita313f9f565d84f2fcc81c818a6b0baaae752a821 (patch)
tree1825ed690c13607fd707e2866c097b91e926af9f /include/linux/regmap.h
parent5d5b7d4f80ed6e861c1c220fd57e3dad0912526e (diff)
regmap: Add stub for regcache_sync_region()
Added on another branch. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 42c69e75b13..33d5f1d9f88 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -280,6 +280,13 @@ static inline int regcache_sync(struct regmap *map)
return -EINVAL;
}
+static inline int regcache_sync_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");