summaryrefslogtreecommitdiff
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorLucas Tanure <tanureal@opensource.cirrus.com>2019-03-19 09:41:32 +0000
committerMark Brown <broonie@kernel.org>2019-03-19 13:08:41 +0000
commita1c67d65df0b5a3858741a144cd43f8e62c5c175 (patch)
tree3f1e1ead228d5304f4b930fe982079db2339a403 /drivers/base/regmap
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
regmap: debugfs: Replace code by already existing function
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap-debugfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index 19eb454f26c3..648779e6df88 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -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 */