summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-18 20:33:23 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-28 22:26:35 +0300
commitffe7c46c59cf0157046f56d5cdc2206c4e78882d (patch)
treeec1eaacb4d8fa804b8b3b11ceb68fa8c2d2be152 /drivers/iio
parent1e0bda8cb8fed680f24c24c8bfc555ae3ea87fa4 (diff)
downloadlinux-ffe7c46c59cf0157046f56d5cdc2206c4e78882d.tar.xz
iio: dac: mcp4821: Switch to including mod_devicetable.h for struct of_device_id definition.
of.h was only included for this definition, so include the correct header instead. Reviewed-by: Nuno Sa <nuno.sa@analog.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240218173323.1023703-9-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/dac/mcp4821.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/mcp4821.c b/drivers/iio/dac/mcp4821.c
index 8a0480d33845..782e8f6b7782 100644
--- a/drivers/iio/dac/mcp4821.c
+++ b/drivers/iio/dac/mcp4821.c
@@ -17,7 +17,7 @@
*/
#include <linux/module.h>
-#include <linux/of.h>
+#include <linux/mod_devicetable.h>
#include <linux/spi/spi.h>
#include <linux/iio/iio.h>