Skip to contentSkip to conversation

hwmon: (ntc_thermistor) Drop unused headers.

PATCH Applied Jonathan Cameron 2 participants 2 messages Jun 11, 2021 – Jun 12, 2021

Subsystems (2)
lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 hwmon: (ntc_thermistor) Drop unused headers.

From: Jonathan Cameron <[email protected]>

The IIO usage in this driver is purely consumer so it should only be including linux/iio/consumer.h Whilst here drop pm_runtime.h as there is no runtime power management in the driver.

Found using include-what-you-use and manual inspection of the suggestions.

---
 drivers/hwmon/ntc_thermistor.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/hwmon/ntc_thermistor.c +0 -4
index 8587189c7f15..18fd6f12ca16 100644
@@ -8,7 +8,6 @@
 
 #include <linux/slab.h>
 #include <linux/module.h>
-#include <linux/pm_runtime.h>
 #include <linux/math64.h>
 #include <linux/platform_device.h>
 #include <linux/err.h>
@@ -17,9 +16,6 @@
 
 #include <linux/platform_data/ntc_thermistor.h>
 
-#include <linux/iio/iio.h>
-#include <linux/iio/machine.h>
-#include <linux/iio/driver.h>
 #include <linux/iio/consumer.h>
 
 #include <linux/hwmon.h>
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 11 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

The IIO usage in this driver is purely consumer so it should only be including linux/iio/consumer.h Whilst here drop pm_runtime.h as there is no runtime power management in the driver.

Found using include-what-you-use and manual inspection of the suggestions.

Applied.

Thanks,
Guenter

Quoted 26 lines
---
 drivers/hwmon/ntc_thermistor.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/hwmon/ntc_thermistor.c +0 -4
index 8587189c7f15..18fd6f12ca16 100644
@@ -8,7 +8,6 @@
 
 #include <linux/slab.h>
 #include <linux/module.h>
-#include <linux/pm_runtime.h>
 #include <linux/math64.h>
 #include <linux/platform_device.h>
 #include <linux/err.h>
@@ -17,9 +16,6 @@
 
 #include <linux/platform_data/ntc_thermistor.h>
 
-#include <linux/iio/iio.h>
-#include <linux/iio/machine.h>
-#include <linux/iio/driver.h>
 #include <linux/iio/consumer.h>
 
 #include <linux/hwmon.h>