summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-23 23:49:43 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-01 15:10:30 +0400
commita313f9f565d84f2fcc81c818a6b0baaae752a821 (patch)
tree1825ed690c13607fd707e2866c097b91e926af9f /include/linux
parent5d5b7d4f80ed6e861c1c220fd57e3dad0912526e (diff)
downloadlinux-a313f9f565d84f2fcc81c818a6b0baaae752a821.tar.xz
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')
-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 42c69e75b131..33d5f1d9f882 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");