提交 75617328 编写于 作者: D Dylan Reid 提交者: 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: NDylan Reid <dgreid@chromium.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 38dbfb59
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册