From: Mark Brown Date: Thu, 23 Feb 2012 19:49:43 +0000 (+0000) Subject: regmap: Add stub for regcache_sync_region() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a313f9f565d84f2fcc81c818a6b0baaae752a821;p=linux.git regmap: Add stub for regcache_sync_region() Added on another branch. Signed-off-by: Mark Brown --- diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 42c69e75b1311..33d5f1d9f8822 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");