diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-08 20:40:19 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-08 20:52:45 +0000 |
commit | 5a1d6d172bc8a3ecf29add6c84d047025cb71566 (patch) | |
tree | b800e66e7aa15e9536801aa04d2309530c8e3b87 /drivers/base | |
parent | 120f80518125b8c312007a54106759d608487553 (diff) | |
download | op-kernel-dev-5a1d6d172bc8a3ecf29add6c84d047025cb71566.zip op-kernel-dev-5a1d6d172bc8a3ecf29add6c84d047025cb71566.tar.gz |
regmap: debugfs: Fix check for block start in cached seeks
Check for the block we were asked to start from, not the position we're
in.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-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 43d51dc..e8d15db 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c @@ -103,7 +103,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, /* Find the relevant block */ list_for_each_entry(c, &map->debugfs_off_cache, list) { - if (*pos >= c->min && *pos <= c->max) { + if (from >= c->min && from <= c->max) { *pos = c->min; return c->base_reg; } |