]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regmap: Add stub for regcache_sync_region()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Feb 2012 19:49:43 +0000 (19:49 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 1 Mar 2012 11:10:30 +0000 (11:10 +0000)
Added on another branch.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/regmap.h

index 42c69e75b13118f5f026c8da3389afa3b280f92f..33d5f1d9f8822c350fdadf98acc631ad3b9b7922 100644 (file)
@@ -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");