aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-06-30 07:40:02 -0400
committerMark Brown <broonie@linaro.org>2013-06-30 07:40:02 -0400
commitad4f496b445eac30bb6ddc72599bf6dd73529cd2 (patch)
tree5fa4984db8ff40a4676beff7d580daf1e53bb326 /drivers/base/regmap
parent912af52f31e7debfeb19c024c8280900a3c4e1a2 (diff)
parent213fa5d9685b985e0c61a8db1883a3abf94b18d7 (diff)
Merge remote-tracking branch 'regmap/topic/debugfs' into regmap-next
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap-debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index 98ee9c79678d..53495753fbdb 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -149,7 +149,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
149 reg_offset = fpos_offset / map->debugfs_tot_len; 149 reg_offset = fpos_offset / map->debugfs_tot_len;
150 *pos = c->min + (reg_offset * map->debugfs_tot_len); 150 *pos = c->min + (reg_offset * map->debugfs_tot_len);
151 mutex_unlock(&map->cache_lock); 151 mutex_unlock(&map->cache_lock);
152 return c->base_reg + reg_offset; 152 return c->base_reg + (reg_offset * map->reg_stride);
153 } 153 }
154 154
155 *pos = c->max; 155 *pos = c->max;
@@ -285,7 +285,7 @@ static ssize_t regmap_map_write_file(struct file *file,
285 return -EINVAL; 285 return -EINVAL;
286 286
287 /* Userspace has been fiddling around behind the kernel's back */ 287 /* Userspace has been fiddling around behind the kernel's back */
288 add_taint(TAINT_USER, LOCKDEP_NOW_UNRELIABLE); 288 add_taint(TAINT_USER, LOCKDEP_STILL_OK);
289 289
290 ret = regmap_write(map, reg, value); 290 ret = regmap_write(map, reg, value);
291 if (ret < 0) 291 if (ret < 0)