Skip to content

Commit 2baad24

Browse files
Mani-SadhasivamDaniel Lezcano
authored andcommitted
thermal/drivers/qcom: Demote error log of thermal zone register to debug
devm_thermal_of_zone_register() can fail with -ENODEV if thermal zone for the channel is not represented in DT. This is perfectly fine since not all sensors needs to be used for thermal zones but only a few in real world. So demote the error log to debug to avoid spamming users. Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 8763f8a commit 2baad24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/qcom/qcom-spmi-adc-tm5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm)
678678
&adc_tm5_thermal_ops);
679679
if (IS_ERR(tzd)) {
680680
if (PTR_ERR(tzd) == -ENODEV) {
681-
dev_warn(adc_tm->dev, "thermal sensor on channel %d is not used\n",
681+
dev_dbg(adc_tm->dev, "thermal sensor on channel %d is not used\n",
682682
adc_tm->channels[i].channel);
683683
continue;
684684
}

0 commit comments

Comments
 (0)