aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/rockchip_thermal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index b811b0fb61b1..3bbc97c67051 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -424,7 +424,8 @@ static u32 rk_tsadcv2_temp_to_code(struct chip_tsadc_table table,
424 } 424 }
425 425
426exit: 426exit:
427 pr_err("Invalid the conversion, error=%d\n", error); 427 pr_err("%s: invalid temperature, temp=%d error=%d\n",
428 __func__, temp, error);
428 return error; 429 return error;
429} 430}
430 431
@@ -475,7 +476,8 @@ static int rk_tsadcv2_code_to_temp(struct chip_tsadc_table table, u32 code,
475 } 476 }
476 break; 477 break;
477 default: 478 default:
478 pr_err("Invalid the conversion table\n"); 479 pr_err("%s: unknown table mode: %d\n", __func__, table.mode);
480 return -EINVAL;
479 } 481 }
480 482
481 /* 483 /*