[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210701142630.44936-1-jeongtae.park@gmail.com>
Date: Thu, 1 Jul 2021 23:26:30 +0900
From: Jeongtae Park <jeongtae.park@...il.com>
To: broonie@...nel.org, ldewangan@...dia.com
Cc: linux-kernel@...r.kernel.org, jeongtae.park@...il.com,
jtp.park@...sung.com
Subject: [PATCH] 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@...il.com>
---
drivers/base/regmap/regmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
}
--
2.25.1
Powered by blists - more mailing lists