Commit a1c67d65 authored by Lucas Tanure's avatar Lucas Tanure Committed by Mark Brown

regmap: debugfs: Replace code by already existing function

Signed-off-by: default avatarLucas Tanure <tanureal@opensource.cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9e98c678
...@@ -219,10 +219,7 @@ static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from, ...@@ -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); start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p);
for (i = start_reg; i <= to; i += map->reg_stride) { for (i = start_reg; i <= to; i += map->reg_stride) {
if (!regmap_readable(map, i) && !regmap_cached(map, i)) if (!regmap_printable(map, i))
continue;
if (regmap_precious(map, i))
continue; continue;
/* If we're in the region the user is trying to read */ /* If we're in the region the user is trying to read */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment