From: Mark Brown Date: Thu, 23 Feb 2012 19:49:43 +0000 (+0000) Subject: regmap: Add stub for regcache_sync_region() X-Git-Tag: firefly_0821_release~3680^2~3287^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a313f9f565d84f2fcc81c818a6b0baaae752a821;p=firefly-linux-kernel-4.4.55.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 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) 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");