From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Based on consideration of the output of the include-what-you-use tool. In this case, mostly additions of includes. A lot of this is about consistency across IIO rather than them being strictly required. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Cc: Hans de Goede <hdegoede@xxxxxxxxxx> Cc: Jelle van der Waa <jelle@xxxxxxxx> Cc: Aleksei Mamlin <mamlinav@xxxxxxxxx> --- drivers/iio/accel/dmard06.c | 4 +++- drivers/iio/accel/dmard09.c | 2 ++ drivers/iio/accel/dmard10.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c index de2868c28d95..6edc474f51c1 100644 --- a/drivers/iio/accel/dmard06.c +++ b/drivers/iio/accel/dmard06.c @@ -5,9 +5,11 @@ * Copyright (C) 2016 Aleksei Mamlin <mamlinav@xxxxxxxxx> */ +#include <linux/bitops.h> +#include <linux/i2c.h> +#include <linux/kernel.h> #include <linux/module.h> #include <linux/mod_devicetable.h> -#include <linux/i2c.h> #include <linux/iio/iio.h> #define DMARD06_DRV_NAME "dmard06" diff --git a/drivers/iio/accel/dmard09.c b/drivers/iio/accel/dmard09.c index e6e28c964777..9155b3a232f4 100644 --- a/drivers/iio/accel/dmard09.c +++ b/drivers/iio/accel/dmard09.c @@ -6,7 +6,9 @@ */ #include <asm/unaligned.h> +#include <linux/kernel.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/i2c.h> #include <linux/iio/iio.h> diff --git a/drivers/iio/accel/dmard10.c b/drivers/iio/accel/dmard10.c index e84bf8db1e89..c928c67c0857 100644 --- a/drivers/iio/accel/dmard10.c +++ b/drivers/iio/accel/dmard10.c @@ -7,9 +7,9 @@ */ #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/i2c.h> #include <linux/iio/iio.h> -#include <linux/iio/sysfs.h> #include <linux/byteorder/generic.h> #define DMARD10_REG_ACTR 0x00 -- 2.31.1