diff mbox series

[RFC,03/11] iio: industrialio-buffer.c: Bring includes up to date.

Message ID 20211003153306.391766-4-jic23@kernel.org (mailing list archive)
State New, archived
Headers show
Series IIO: Bring core header includes up to date. | expand

Commit Message

Jonathan Cameron Oct. 3, 2021, 3:32 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Note that a lot of functionality has moved around in IIO over the
years and header includes have not always kept track.

Based on manual inspection suggestions from the
include-what-you-use-tool adjusted to take into account certain
'super headers' used in the kernel.

Includes reordering headers to alphabetical order (mostly in order so
not done in a separate patch).

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/industrialio-buffer.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c
index ed7a5c0a31e1..f5ab3a43d5d6 100644
--- a/drivers/iio/industrialio-buffer.c
+++ b/drivers/iio/industrialio-buffer.c
@@ -9,16 +9,31 @@ 
  * - Better memory allocation techniques?
  * - Alternative access techniques?
  */
+#include <linux/align.h>
+#include <linux/bitmap.h>
+#include <linux/bitops.h>
 #include <linux/anon_inodes.h>
-#include <linux/kernel.h>
-#include <linux/export.h>
 #include <linux/device.h>
+#include <linux/err.h>
+#include <linux/export.h>
 #include <linux/file.h>
 #include <linux/fs.h>
-#include <linux/cdev.h>
-#include <linux/slab.h>
+#include <linux/kernel.h>
+#include <linux/kref.h>
+#include <linux/kstrtox.h>
+#include <linux/list.h>
+#include <linux/math.h>
+#include <linux/minmax.h>
+#include <linux/mutex.h>
 #include <linux/poll.h>
+#include <linux/sched.h>
 #include <linux/sched/signal.h>
+#include <linux/slab.h>
+#include <linux/stat.h>
+#include <linux/string.h>
+#include <linux/sysfs.h>
+#include <linux/uaccess.h>
+#include <linux/wait.h>
 
 #include <linux/iio/iio.h>
 #include "iio_core.h"