From: Jonathan Cameron Date: Thu, 3 Jun 2021 19:36:16 +0000 (+0100) Subject: iio: adis: Cleanout unused headers X-Git-Tag: v5.15~790^2~180^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9654c414bfdca1a62d17e8ae1085a5a2703b6a89;p=platform%2Fkernel%2Flinux-starfive.git iio: adis: Cleanout unused headers 0-day recently added the include-what-you-use header checker and it gave a warning on an adis patch. As such I decided to run it on all the adis drivers and see if it made sensible suggestions. Note this doesn't represent a complete list of what it suggested changing as I filtered out a few on the basis they are standard headers used to effectively include a bunch of other headers. Could split this into a patch per driver if people prefer. Note to anyone else trying this tool is that it is somewhat of a loose cannon so you will be wanting to carefully check any suggestions before proposing patches! I thought about also reorganising the headers whilst here, but that would make this patch harder to read, or lead to another rather noisy patch across most of the files. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20210603193616.3708447-1-jic23@kernel.org --- diff --git a/drivers/iio/accel/adis16201.c b/drivers/iio/accel/adis16201.c index fe22599..7a434e2 100644 --- a/drivers/iio/accel/adis16201.c +++ b/drivers/iio/accel/adis16201.c @@ -8,10 +8,7 @@ #include #include #include -#include -#include #include -#include #include #include diff --git a/drivers/iio/accel/adis16209.c b/drivers/iio/accel/adis16209.c index 6c2d4a9..ac08e86 100644 --- a/drivers/iio/accel/adis16209.c +++ b/drivers/iio/accel/adis16209.c @@ -7,11 +7,8 @@ #include #include -#include #include #include -#include -#include #include #include diff --git a/drivers/iio/gyro/adis16136.c b/drivers/iio/gyro/adis16136.c index d248c8a..36879f0 100644 --- a/drivers/iio/gyro/adis16136.c +++ b/drivers/iio/gyro/adis16136.c @@ -6,19 +6,14 @@ * Author: Lars-Peter Clausen */ -#include -#include -#include #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/drivers/iio/gyro/adis16260.c b/drivers/iio/gyro/adis16260.c index 56f930b..66b6b7b 100644 --- a/drivers/iio/gyro/adis16260.c +++ b/drivers/iio/gyro/adis16260.c @@ -5,17 +5,12 @@ * Copyright 2010 Analog Devices Inc. */ -#include -#include #include #include #include -#include #include #include -#include -#include #include #define ADIS16260_STARTUP_DELAY 220 /* ms */ diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index 319b64b..a5b421f 100644 --- a/drivers/iio/imu/adis.c +++ b/drivers/iio/imu/adis.c @@ -12,14 +12,10 @@ #include #include #include -#include -#include #include #include #include -#include -#include #include #define ADIS_MSC_CTRL_DATA_RDY_EN BIT(2) diff --git a/drivers/iio/imu/adis16400.c b/drivers/iio/imu/adis16400.c index cb8d3ff..641b4f7 100644 --- a/drivers/iio/imu/adis16400.c +++ b/drivers/iio/imu/adis16400.c @@ -10,22 +10,15 @@ * Copyright (c) 2011 Analog Devices Inc. */ -#include #include -#include -#include #include #include #include -#include -#include -#include #include #include #include #include -#include #include #include #include diff --git a/drivers/iio/imu/adis16460.c b/drivers/iio/imu/adis16460.c index 73bf45e8..ba373d7 100644 --- a/drivers/iio/imu/adis16460.c +++ b/drivers/iio/imu/adis16460.c @@ -5,7 +5,6 @@ * Copyright 2019 Analog Devices Inc. */ -#include #include #include diff --git a/drivers/iio/imu/adis16475.c b/drivers/iio/imu/adis16475.c index 5654c0c..d0e84e5 100644 --- a/drivers/iio/imu/adis16475.c +++ b/drivers/iio/imu/adis16475.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c index a9c21a5..9ec0e61 100644 --- a/drivers/iio/imu/adis16480.c +++ b/drivers/iio/imu/adis16480.c @@ -9,24 +9,18 @@ #include #include #include -#include #include -#include #include #include #include -#include -#include #include #include #include #include #include -#include #include #include -#include #include #include diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c index b68304d..1d3026d 100644 --- a/drivers/staging/iio/accel/adis16203.c +++ b/drivers/staging/iio/accel/adis16203.c @@ -5,20 +5,14 @@ * Copyright 2010 Analog Devices Inc. */ -#include #include -#include #include #include -#include #include #include -#include -#include #include -#include #define ADIS16203_STARTUP_DELAY 220 /* ms */ diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c index 8d3afc6..2a8aa83 100644 --- a/drivers/staging/iio/accel/adis16240.c +++ b/drivers/staging/iio/accel/adis16240.c @@ -5,20 +5,14 @@ * Copyright 2010 Analog Devices Inc. */ -#include -#include -#include #include #include #include -#include #include -#include #include #include #include -#include #include #define ADIS16240_STARTUP_DELAY 220 /* ms */