iio: adis: Cleanout unused headers
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Jun 2021 19:36:16 +0000 (20:36 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 4 Jun 2021 08:28:10 +0000 (09:28 +0100)
commit9654c414bfdca1a62d17e8ae1085a5a2703b6a89
tree652efb15dd4c083b464dc87716e5fefd5af9dff2
parenteb4e91f42fc9140b7e373675e03a21a7eaec68e3
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 <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210603193616.3708447-1-jic23@kernel.org
drivers/iio/accel/adis16201.c
drivers/iio/accel/adis16209.c
drivers/iio/gyro/adis16136.c
drivers/iio/gyro/adis16260.c
drivers/iio/imu/adis.c
drivers/iio/imu/adis16400.c
drivers/iio/imu/adis16460.c
drivers/iio/imu/adis16475.c
drivers/iio/imu/adis16480.c
drivers/staging/iio/accel/adis16203.c
drivers/staging/iio/accel/adis16240.c