Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Dylan Reid and committed by
Mark Brown
75617328 38dbfb59

+1 -1
+1 -1
drivers/base/regmap/regcache.c
··· 249 249 { 250 250 unsigned int reg; 251 251 252 - for (reg = min; reg <= max; reg++) { 252 + for (reg = min; reg <= max; reg += map->reg_stride) { 253 253 unsigned int val; 254 254 int ret; 255 255