Skip to content

Commit 1852f5e

Browse files
jtparkbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e73f0f0 commit 1852f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/regmap/regmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
16671667
if (ret) {
16681668
dev_err(map->dev,
16691669
"Error in caching of register: %x ret: %d\n",
1670-
reg + i, ret);
1670+
reg + regmap_get_offset(map, i), ret);
16711671
return ret;
16721672
}
16731673
}

0 commit comments

Comments
 (0)