Commit 75617328 authored by Dylan Reid's avatar Dylan Reid Committed by Mark Brown

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: default avatarDylan Reid <dgreid@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -249,7 +249,7 @@ static int regcache_default_sync(struct regmap *map, unsigned int min, ...@@ -249,7 +249,7 @@ static int regcache_default_sync(struct regmap *map, unsigned int min,
{ {
unsigned int reg; unsigned int reg;
for (reg = min; reg <= max; reg++) { for (reg = min; reg <= max; reg += map->reg_stride) {
unsigned int val; unsigned int val;
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment