Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <andy@kernel.org>
Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/1f7677d31a0165cb30d7eb3b4d613e1337937f9a.1746662899.git.Jonathan.Santos@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jonathan Santos and committed by
Jonathan Cameron
034c71a2 018f5090

+3 -1
+3 -1
drivers/iio/adc/ad7768-1.c
··· 4 4 * 5 5 * Copyright 2017 Analog Devices Inc. 6 6 */ 7 + #include <linux/array_size.h> 7 8 #include <linux/bitfield.h> 8 9 #include <linux/clk.h> 10 + #include <linux/completion.h> 9 11 #include <linux/delay.h> 10 12 #include <linux/device.h> 11 13 #include <linux/err.h> 12 14 #include <linux/gpio/consumer.h> 13 - #include <linux/kernel.h> 15 + #include <linux/interrupt.h> 14 16 #include <linux/module.h> 15 17 #include <linux/regmap.h> 16 18 #include <linux/regulator/consumer.h>