diff mbox series

[3/7] iio: accel: cros_ec_accel_legacy: Drop unused IIO includes

Message ID 20211003121711.279736-4-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 with the include-what-you-use tool.
Note that to keep this patch simple and non controversial it only
removes IIO headers that are clearly unused in this driver.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/accel/cros_ec_accel_legacy.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Jonathan Cameron Oct. 3, 2021, 3:12 p.m. UTC | #1
On Sun,  3 Oct 2021 13:17:07 +0100
Jonathan Cameron <jic23@kernel.org> wrote:

> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> Identified with the include-what-you-use tool.
> Note that to keep this patch simple and non controversial it only
> removes IIO headers that are clearly unused in this driver.
> 
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> ---
>  drivers/iio/accel/cros_ec_accel_legacy.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/iio/accel/cros_ec_accel_legacy.c b/drivers/iio/accel/cros_ec_accel_legacy.c
> index b6f3471b62dc..f5abe993d38e 100644
> --- a/drivers/iio/accel/cros_ec_accel_legacy.c
> +++ b/drivers/iio/accel/cros_ec_accel_legacy.c
> @@ -11,12 +11,9 @@
>  
>  #include <linux/delay.h>
>  #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>

Oops, don't need kfifo_buf.h either.  I'll fix that in v2, or if people are
otherwise happy whilst applying.

> -#include <linux/iio/trigger_consumer.h>
> -#include <linux/iio/triggered_buffer.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
>  #include <linux/slab.h>
diff mbox series

Patch

diff --git a/drivers/iio/accel/cros_ec_accel_legacy.c b/drivers/iio/accel/cros_ec_accel_legacy.c
index b6f3471b62dc..f5abe993d38e 100644
--- a/drivers/iio/accel/cros_ec_accel_legacy.c
+++ b/drivers/iio/accel/cros_ec_accel_legacy.c
@@ -11,12 +11,9 @@ 
 
 #include <linux/delay.h>
 #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/slab.h>