From: Dylan Reid Date: Tue, 18 Mar 2014 20:45:08 +0000 (-0700) Subject: regmap: cache: Step by stride in default sync X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=756173285e87c792c6fa8eaaaf1217cfcf1416dd;p=deliverable%2Flinux.git regmap: cache: Step by stride in default sync The default sync operation was still assuming a stride of one, fix it to respect the reg_stride set in the map. Signed-off-by: Dylan Reid Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index d4dd77134814..bb3ba42e0329 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -249,7 +249,7 @@ static int regcache_default_sync(struct regmap *map, unsigned int min, { unsigned int reg; - for (reg = min; reg <= max; reg++) { + for (reg = min; reg <= max; reg += map->reg_stride) { unsigned int val; int ret;