We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb55b01 commit ee35f72Copy full SHA for ee35f72
drivers/thermal/qcom/qcom-spmi-adc-tm5.c
@@ -20,6 +20,8 @@
20
#include <linux/thermal.h>
21
#include <asm-generic/unaligned.h>
22
23
+#include "../thermal_hwmon.h"
24
+
25
/*
26
* Thermal monitoring block consists of 8 (ADC_TM5_NUM_CHANNELS) channels. Each
27
* channel is programmed to use one of ADC channels for voltage comparison.
@@ -687,6 +689,9 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm)
687
689
return PTR_ERR(tzd);
688
690
}
691
adc_tm->channels[i].tzd = tzd;
692
+ if (devm_thermal_add_hwmon_sysfs(tzd))
693
+ dev_warn(adc_tm->dev,
694
+ "Failed to add hwmon sysfs attributes\n");
695
696
697
return 0;
0 commit comments