hwmon: (ntc_thermistor) Drop unused headers.
Subsystems (2)
Jonathan Cameron
maintainerPATCH 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.
Signed-off-by Jonathan Cameron <[email protected]>
Cc Guenter Roeck <[email protected]>
--- drivers/hwmon/ntc_thermistor.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/hwmon/ntc_thermistor.c +0 -4
@@ -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
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.hWhilst here droppm_runtime.has there is no runtime power management in the driver.Found using include-what-you-use and manual inspection of the suggestions.
Signed-off-by Jonathan Cameron <[email protected]>Cc Guenter Roeck <[email protected]>
Applied.
Thanks,
Guenter
Quoted 26 lines
--- drivers/hwmon/ntc_thermistor.c | 4 ---- 1 file changed, 4 deletions(-)drivers/hwmon/ntc_thermistor.c +0
-4@@ -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>