diff mbox series

[2/7] iio: cros_ec_sensors: Remove excessive IIO includes

Message ID 20211003121711.279736-3-jic23@kernel.org (mailing list archive)
State New, archived
Headers show
Series cros_ec_sensors: Drop unused IIO header includes | expand

Commit Message

Jonathan Cameron Oct. 3, 2021, 12:17 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Identified via the include-what-you-use tool.
To keep the scope simple, this only includes removal of IIO related headers
that are completely unused in these files.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c      | 4 ----
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 1 -
 2 files changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
index 376a5b30010a..9a02c2cd8762 100644
--- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
+++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
@@ -9,12 +9,8 @@ 
  */
 
 #include <linux/device.h>
-#include <linux/iio/buffer.h>
 #include <linux/iio/common/cros_ec_sensors_core.h>
 #include <linux/iio/iio.h>
-#include <linux/iio/kfifo_buf.h>
-#include <linux/iio/trigger_consumer.h>
-#include <linux/iio/triggered_buffer.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_data/cros_ec_commands.h>
diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
index 28bde13003b7..86d8fe1146d7 100644
--- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
+++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
@@ -12,7 +12,6 @@ 
 #include <linux/iio/iio.h>
 #include <linux/iio/kfifo_buf.h>
 #include <linux/iio/sysfs.h>
-#include <linux/iio/trigger.h>
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
 #include <linux/kernel.h>