thermal: imx: Disambiguate the error message
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 thermal: imx: Disambiguate the error message
From: Fabio Estevam <[email protected]>
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 <[email protected]>
--- drivers/thermal/imx_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/thermal/imx_thermal.c +2 -2
@@ -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);
Signature · 1 line
2.25.1