Skip to content

Commit

Permalink
regmap: cache: Step by stride in default sync
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
dgreid authored and broonie committed Mar 19, 2014
1 parent 38dbfb5 commit 7561732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7561732

Please sign in to comment.