diff mbox series

thermal: imx: Disambiguate the error message

Message ID 20220322135937.304801-1-festevam@gmail.com
State New
Headers show
Series thermal: imx: Disambiguate the error message | expand

Commit Message

Fabio Estevam March 22, 2022, 1:59 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

When the "failed to read sensor data" error message is shown, the
user does not know if it comes after reading the OCOTP_ANA1 or
the OCOTP_MEM0 register.

Disambiguate the error message by adding the register name to it.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/thermal/imx_thermal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index 16663373b682..dbc4bca1b68c 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -527,7 +527,7 @@  static int imx_init_from_tempmon_data(struct platform_device *pdev)
 
 	ret = regmap_read(map, OCOTP_ANA1, &val);
 	if (ret) {
-		dev_err(&pdev->dev, "failed to read sensor data: %d\n", ret);
+		dev_err(&pdev->dev, "failed to read OCOTP_ANA1: %d\n", ret);
 		return ret;
 	}
 	ret = imx_init_calib(pdev, val);
@@ -536,7 +536,7 @@  static int imx_init_from_tempmon_data(struct platform_device *pdev)
 
 	ret = regmap_read(map, OCOTP_MEM0, &val);
 	if (ret) {
-		dev_err(&pdev->dev, "failed to read sensor data: %d\n", ret);
+		dev_err(&pdev->dev, "failed to read OCOTP_MEM0: %d\n", ret);
 		return ret;
 	}
 	imx_init_temp_grade(pdev, val);