diff options
author | Jeongtae Park <jeongtae.park@gmail.com> | 2021-07-01 23:26:30 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-11 23:48:42 +0100 |
commit | 1852f5ed358147095297a09cc3c6f160208a676d (patch) | |
tree | ea321529e91b735b79430f9ba6a18ae324201380 /drivers/base/regmap | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) | |
download | linux-stable-1852f5ed358147095297a09cc3c6f160208a676d.tar.gz linux-stable-1852f5ed358147095297a09cc3c6f160208a676d.tar.bz2 linux-stable-1852f5ed358147095297a09cc3c6f160208a676d.zip |
regmap: fix the offset of register error log
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>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index fe3e38dd5324..2fc826e97591 100644 --- 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; } } |