From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: [PATCH 4/8] iio: adc: ads8688: Switch to mod_devicetable.h for struct of_device_id definition
Date: Sun, 18 Feb 2024 17:33:19 +0000 [thread overview]
Message-ID: <20240218173323.1023703-5-jic23@kernel.org> (raw)
In-Reply-To: <20240218173323.1023703-1-jic23@kernel.org>
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 --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>
--
2.43.2
next prev parent reply other threads:[~2024-02-18 17:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-18 17:33 [PATCH 0/8] IIO: Drop incorrect includes of linux/of.h Jonathan Cameron
2024-02-18 17:33 ` [PATCH 1/8] iio: light: vl6180: Drop unused linux/of.h include Jonathan Cameron
2024-02-18 17:33 ` [PATCH 2/8] iio: light: al3320a: " Jonathan Cameron
2024-02-18 17:33 ` [PATCH 3/8] iio: light: al3010: Switch from linux/of.h to linux/mod_devicetable.h Jonathan Cameron
2024-02-18 17:33 ` Jonathan Cameron [this message]
2024-02-18 17:33 ` [PATCH 5/8] iio: accel: adxl372: " Jonathan Cameron
2024-02-18 17:33 ` [PATCH 6/8] iio: accel: bma180: " Jonathan Cameron
2024-02-18 17:33 ` [PATCH 7/8] iio: accel: kxsd9: " Jonathan Cameron
2024-02-18 17:33 ` [PATCH 8/8] iio: dac: mcp4821: Switch to including mod_devicetable.h for struct of_device_id definition Jonathan Cameron
2024-02-19 9:20 ` [PATCH 0/8] IIO: Drop incorrect includes of linux/of.h Nuno Sá
2024-02-19 12:24 ` Andy Shevchenko
2024-02-24 15:57 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240218173323.1023703-5-jic23@kernel.org \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox