Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266979
b: refs/heads/master
c: d813ae9
h: refs/heads/master
i:
  266977: 8a53ddd
  266975: 6f49f53
v: v3
  • Loading branch information
Mark Brown committed Sep 5, 2011
1 parent 2d95b92 commit 5d5c5da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b457e3910251ef28712ba5d14adac8194bd5b2c
refs/heads/master: d813ae9a105219255c07d382059de831186c10d0
4 changes: 2 additions & 2 deletions trunk/drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
val_len = 2 * map->format.val_bytes;
tot_len = reg_len + val_len + 3; /* : \n */

for (i = 0; i < map->max_register; i++) {
for (i = 0; i < map->max_register + 1; i++) {
if (!regmap_readable(map, i))
continue;

Expand Down Expand Up @@ -132,7 +132,7 @@ static ssize_t regmap_access_read_file(struct file *file,
reg_len = regmap_calc_reg_len(map->max_register, buf, count);
tot_len = reg_len + 10; /* ': R W V P\n' */

for (i = 0; i < map->max_register; i++) {
for (i = 0; i < map->max_register + 1; i++) {
/* Ignore registers which are neither readable nor writable */
if (!regmap_readable(map, i) && !regmap_writeable(map, i))
continue;
Expand Down

0 comments on commit 5d5c5da

Please sign in to comment.