Skip to content

Commit ff7f85e

Browse files
robherringrafaeljw
authored andcommitted
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>
1 parent 7e364e5 commit ff7f85e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/iio/adc/ad7292.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/bitfield.h>
99
#include <linux/device.h>
1010
#include <linux/module.h>
11+
#include <linux/of.h>
1112
#include <linux/regulator/consumer.h>
1213
#include <linux/spi/spi.h>
1314

0 commit comments

Comments
 (0)