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:
e73f0f0
)
regmap: fix the offset of register error log
author
Jeongtae Park
<jeongtae.park@gmail.com>
Thu, 1 Jul 2021 14:26:30 +0000
(23:26 +0900)
committer
Mark Brown
<broonie@kernel.org>
Sun, 11 Jul 2021 22:48:42 +0000
(23:48 +0100)
This patch fixes the offset of register error log
by using regmap_get_offset().
Signed-off-by: Jeongtae Park <jeongtae.park@gmail.com>
Link:
https://lore.kernel.org/r/20210701142630.44936-1-jeongtae.park@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap.c
b/drivers/base/regmap/regmap.c
index
fe3e38d
..
2fc826e
100644
(file)
--- a/
drivers/base/regmap/regmap.c
+++ b/
drivers/base/regmap/regmap.c
@@
-1667,7
+1667,7
@@
static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
if (ret) {
dev_err(map->dev,
"Error in caching of register: %x ret: %d\n",
- reg +
i
, ret);
+ reg +
regmap_get_offset(map, i)
, ret);
return ret;
}
}