[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190319094133.8843-1-tanureal@opensource.cirrus.com>
Date: Tue, 19 Mar 2019 09:41:32 +0000
From: Lucas Tanure <tanureal@...nsource.cirrus.com>
To: Mark Brown <broonie@...nel.org>
CC: <patches@...nsource.cirrus.com>,
Charles Keepax <ckeepax@...nsource.cirrus.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
<linux-kernel@...r.kernel.org>,
Lucas Tanure <tanureal@...nsource.cirrus.com>
Subject: [PATCH 1/2] regmap: debugfs: Replace code by already existing function
Signed-off-by: Lucas Tanure <tanureal@...nsource.cirrus.com>
---
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 6d3dc1429ae57..9b3f49ffc4a5f 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -214,10 +214,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.21.0
Powered by blists - more mailing lists