瀏覽代碼

regmap: Add stub for regcache_sync_region()

Added on another branch.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown 13 年之前
父節點
當前提交
a313f9f565
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      include/linux/regmap.h

+ 7 - 0
include/linux/regmap.h

@@ -280,6 +280,13 @@ static inline int regcache_sync(struct regmap *map)
 	return -EINVAL;
 	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)
 static inline void regcache_cache_only(struct regmap *map, bool enable)
 {
 {
 	WARN_ONCE(1, "regmap API is disabled");
 	WARN_ONCE(1, "regmap API is disabled");