aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-23 14:49:43 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-01 06:10:30 -0500
commita313f9f565d84f2fcc81c818a6b0baaae752a821 (patch)
tree1825ed690c13607fd707e2866c097b91e926af9f /include
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')
-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)
280 return -EINVAL; 280 return -EINVAL;
281} 281}
282 282
283static inline int regcache_sync_region(struct regmap *map, unsigned int min,
284 unsigned int max)
285{
286 WARN_ONCE(1, "regmap API is disabled");
287 return -EINVAL;
288}
289
283static inline void regcache_cache_only(struct regmap *map, bool enable) 290static inline void regcache_cache_only(struct regmap *map, bool enable)
284{ 291{
285 WARN_ONCE(1, "regmap API is disabled"); 292 WARN_ONCE(1, "regmap API is disabled");