From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> 0-day recently started running the include-what-you-use checker with LLVM builds. After it identified a header we should have dropped in a particular patch, I decided to experiment with it a little and see if it was useful for tidying up includes that have gotten rather out of sync with the code over the years. Note the tool is something I'd only advocate using to give you hints on what might want adjusting so each of these was done by hand inspection. I've grouped them by manufacturer as otherwise we would have a lot of patches. Note that the big 'many device / device type' drivers have been done separately so you won't see them in this series. I'm rather hoping this approach may ease getting reviews of these, but we shall see. If people have time to look at ones I haven't directly cc'd them on that would be great. There are some drivers touched in here where I don't know of a current maintainer. Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Cc: Aleksei Mamlin <mamlinav@xxxxxxxxx> Cc: Dan Robertson <dan@xxxxxxxxxxxxxxx> Cc: Hans de Goede <hdegoede@xxxxxxxxxx> Cc: Harinath Nampally <harinath922@xxxxxxxxx> Cc: Jelle van der Waa <jelle@xxxxxxxx> Cc: Jonathan Bakker <xc-racer2@xxxxxxx> Cc: Lars-Peter Clausen <lars@xxxxxxxxxx> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> Cc: Michael Hennerich <Michael.Hennerich@xxxxxxxxxx> Cc: Mike Looijmans <mike.looijmans@xxxxxxxx> Cc: Sean Nyekjaer <sean@xxxxxxxxxx> Cc: Tomas Melin <tomas.melin@xxxxxxxxxxx> Jonathan Cameron (12): iio:accel:adxl372: Cleanup includes iio:accel:bma180: Use generic device properties. iio:accel:bosch drivers: Cleanup includes iio:accel:miramems drivers: Cleanup headers iio:accel:domintech: Cleanup includes. iio:accel:fxls8962af: Add a few missing includes. iio:accel:kionix drivers: Cleanup includes iio:accel:mc3220: Cleanup includes. iio:accel:freescale drivers: Cleanup includes iio:accel:memsic drivers: Cleanup includes iio:accel:murata/vti drivers: Include cleanups for the sca**** parts. iio:accel:sensortek drivers: Add some includes drivers/iio/accel/adxl372.c | 4 ++-- drivers/iio/accel/adxl372.h | 2 ++ drivers/iio/accel/adxl372_spi.c | 3 +-- drivers/iio/accel/bma180.c | 11 +++++------ drivers/iio/accel/bma220_spi.c | 2 +- drivers/iio/accel/bma400_core.c | 1 - drivers/iio/accel/bma400_spi.c | 1 - drivers/iio/accel/bmc150-accel-core.c | 1 + drivers/iio/accel/bmc150-accel-spi.c | 1 - drivers/iio/accel/bmi088-accel-core.c | 3 --- drivers/iio/accel/bmi088-accel-spi.c | 3 ++- drivers/iio/accel/da280.c | 3 +-- drivers/iio/accel/da311.c | 4 ++-- drivers/iio/accel/dmard06.c | 4 +++- drivers/iio/accel/dmard09.c | 2 ++ drivers/iio/accel/dmard10.c | 2 +- drivers/iio/accel/fxls8962af-core.c | 3 ++- drivers/iio/accel/kxcjk-1013.c | 4 +++- drivers/iio/accel/kxsd9-i2c.c | 3 --- drivers/iio/accel/kxsd9-spi.c | 5 +---- drivers/iio/accel/kxsd9.c | 1 - drivers/iio/accel/kxsd9.h | 2 ++ drivers/iio/accel/mc3230.c | 2 +- drivers/iio/accel/mma7455_core.c | 3 ++- drivers/iio/accel/mma7455_i2c.c | 1 + drivers/iio/accel/mma7455_spi.c | 1 + drivers/iio/accel/mma7660.c | 3 +++ drivers/iio/accel/mma8452.c | 5 +++++ drivers/iio/accel/mma9551.c | 7 ++++--- drivers/iio/accel/mma9551_core.h | 2 ++ drivers/iio/accel/mma9553.c | 6 ++++-- drivers/iio/accel/mxc4005.c | 4 ++++ drivers/iio/accel/mxc6255.c | 5 ++--- drivers/iio/accel/sca3000.c | 5 ++--- drivers/iio/accel/sca3300.c | 3 ++- drivers/iio/accel/stk8312.c | 3 +++ drivers/iio/accel/stk8ba50.c | 2 ++ 37 files changed, 69 insertions(+), 48 deletions(-) -- 2.31.1