diff mbox series

[4/8] iio: adc: ads8688: Switch to mod_devicetable.h for struct of_device_id definition

Message ID 20240218173323.1023703-5-jic23@kernel.org (mailing list archive)
State Accepted
Headers show
Series IIO: Drop incorrect includes of linux/of.h | expand

Commit Message

Jonathan Cameron Feb. 18, 2024, 5:33 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

of.h was only included to get access to this structure, so include the
correct header directly instead.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/adc/ti-ads8688.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c
index ef06a897421a..9440a268a78c 100644
--- a/drivers/iio/adc/ti-ads8688.c
+++ b/drivers/iio/adc/ti-ads8688.c
@@ -11,7 +11,7 @@ 
 #include <linux/regulator/consumer.h>
 #include <linux/err.h>
 #include <linux/module.h>
-#include <linux/of.h>
+#include <linux/mod_devicetable.h>
 
 #include <linux/iio/iio.h>
 #include <linux/iio/buffer.h>