diff mbox series

[05/12] iio:accel:domintech: Cleanup includes.

Message ID 20210611171355.202903-6-jic23@kernel.org (mailing list archive)
State Superseded
Headers show
Series iio:accel: Header Cleanups. | expand

Commit Message

Jonathan Cameron June 11, 2021, 5:13 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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@huawei.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Jelle van der Waa <jelle@vdwaa.nl>
Cc: Aleksei Mamlin <mamlinav@gmail.com>
---
 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 mbox series

Patch

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@gmail.com>
  */
 
+#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