Skip to content

Commit

Permalink
regmap: debugfs: Replace code by already existing function
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Lucas Tanure authored and Mark Brown committed Mar 19, 2019
1 parent 9e98c67 commit a1c67d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,7 @@ static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from,
start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p);

for (i = start_reg; i <= to; i += map->reg_stride) {
if (!regmap_readable(map, i) && !regmap_cached(map, i))
continue;

if (regmap_precious(map, i))
if (!regmap_printable(map, i))
continue;

/* If we're in the region the user is trying to read */
Expand Down

0 comments on commit a1c67d6

Please sign in to comment.