From a1c67d65df0b5a3858741a144cd43f8e62c5c175 Mon Sep 17 00:00:00 2001 From: Lucas Tanure Date: Tue, 19 Mar 2019 09:41:32 +0000 Subject: [PATCH] regmap: debugfs: Replace code by already existing function Signed-off-by: Lucas Tanure Signed-off-by: Mark Brown --- drivers/base/regmap/regmap-debugfs.c | 5 +---- 1 file changed, 1 insertion(+), 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 */ -- 2.11.0