diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2013-05-14 07:54:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-14 16:53:45 +0400 |
commit | 213fa5d9685b985e0c61a8db1883a3abf94b18d7 (patch) | |
tree | 9b7e8d6d71fc429ae0067d1d088ac4d8693c5a1d /drivers/base/regmap/regmap-debugfs.c | |
parent | f9e464a566a1c3c9b71558e5523288b5432c3e3f (diff) | |
download | kernel_goldelico_gta04-213fa5d9685b985e0c61a8db1883a3abf94b18d7.zip kernel_goldelico_gta04-213fa5d9685b985e0c61a8db1883a3abf94b18d7.tar.gz kernel_goldelico_gta04-213fa5d9685b985e0c61a8db1883a3abf94b18d7.tar.bz2 |
regmap: debugfs: Fix return from regmap_debugfs_get_dump_start
regmap_debugfs_get_dump_start should return the offset of the register
it should start reading from, However in the current code at one point
the code does not return correct register offset.
With this patch all the returns from this function takes reg_stride in
to consideration to return correct offset.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/regmap-debugfs.c')
-rw-r--r-- | drivers/base/regmap/regmap-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index 8772fb7..98cb94e 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c @@ -145,7 +145,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, reg_offset = fpos_offset / map->debugfs_tot_len; *pos = c->min + (reg_offset * map->debugfs_tot_len); mutex_unlock(&map->cache_lock); - return c->base_reg + reg_offset; + return c->base_reg + (reg_offset * map->reg_stride); } *pos = c->max; |