projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e98c67
)
regmap: debugfs: Replace code by already existing function
author
Lucas Tanure
<tanureal@opensource.cirrus.com>
Tue, 19 Mar 2019 09:41:32 +0000
(09:41 +0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 19 Mar 2019 13:08:41 +0000
(13:08 +0000)
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap-debugfs.c
b/drivers/base/regmap/regmap-debugfs.c
index 19eb454f26c331b1f91e6076726f868ed7c958cc..648779e6df8890d6db04e4b143273e042cad756c 100644
(file)
--- 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 */