|
@@ -145,7 +145,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
|
|
reg_offset = fpos_offset / map->debugfs_tot_len;
|
|
reg_offset = fpos_offset / map->debugfs_tot_len;
|
|
*pos = c->min + (reg_offset * map->debugfs_tot_len);
|
|
*pos = c->min + (reg_offset * map->debugfs_tot_len);
|
|
mutex_unlock(&map->cache_lock);
|
|
mutex_unlock(&map->cache_lock);
|
|
- return c->base_reg + reg_offset;
|
|
|
|
|
|
+ return c->base_reg + (reg_offset * map->reg_stride);
|
|
}
|
|
}
|
|
|
|
|
|
*pos = c->max;
|
|
*pos = c->max;
|