summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-04-05 15:27:15 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-04-06 20:36:26 +0200
commitff7f85e35479243e86c31726bb2c54b24fef07cd (patch)
tree3fbf25be2ea483c70a6a31989c6875a974358131 /drivers/iio
parent7e364e56293bb98cae1b55fd835f5991c4e96e7d (diff)
downloadlwn-ff7f85e35479243e86c31726bb2c54b24fef07cd.tar.gz
lwn-ff7f85e35479243e86c31726bb2c54b24fef07cd.zip
iio: adc: ad7292: Add explicit include for of.h
With linux/acpi.h no longer implicitly including of.h, add an explicit include of of.h to fix the following error: drivers/iio/adc/ad7292.c:307:9: error: implicit declaration of function 'for_each_available_child_of_node'; did you mean 'fwnode_for_each_available_child_node'? [-Werror=implicit-function-declaration] Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ad7292.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c
index a2f9fda25ff3..cccacec5db6d 100644
--- a/drivers/iio/adc/ad7292.c
+++ b/drivers/iio/adc/ad7292.c
@@ -8,6 +8,7 @@
#include <linux/bitfield.h>
#include <linux/device.h>
#include <linux/module.h>
+#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>