Skip to content

Commit 034c71a

Browse files
jonathannsjic23
authored andcommitted
iio: adc: ad7768-1: reorganize driver headers
Remove kernel.h since it adds a lot of unnecessary dependencies. Add specific headers to ensure all functions and macros used in the driver are directly declared. Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: Jonathan Santos <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://patch.msgid.link/1f7677d31a0165cb30d7eb3b4d613e1337937f9a.1746662899.git.Jonathan.Santos@analog.com Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 018f509 commit 034c71a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/iio/adc/ad7768-1.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
*
55
* Copyright 2017 Analog Devices Inc.
66
*/
7+
#include <linux/array_size.h>
78
#include <linux/bitfield.h>
89
#include <linux/clk.h>
10+
#include <linux/completion.h>
911
#include <linux/delay.h>
1012
#include <linux/device.h>
1113
#include <linux/err.h>
1214
#include <linux/gpio/consumer.h>
13-
#include <linux/kernel.h>
15+
#include <linux/interrupt.h>
1416
#include <linux/module.h>
1517
#include <linux/regmap.h>
1618
#include <linux/regulator/consumer.h>

0 commit comments

Comments
 (0)