regmap: Add stub for regcache_sync_region()
Added on another branch.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 42c69e7..33d5f1d 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -280,6 +280,13 @@
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");