iio: adc: twl4030-madc: add missing of.h include
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Oct 2022 12:32:07 +0000 (05:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Oct 2022 12:57:16 +0000 (05:57 -0700)
The driver is using of_device_id/of_match_ptr() and therefore needs
to include of.h header. We used to get this definition indirectly via
inclusion of matrix_keypad.h from twl.h, but we are cleaning up
matrix_keypad.h from unnecessary includes.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20220927154611.3330871-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/iio/adc/twl4030-madc.c

index f8f8aea15612af435c1e75aeab39e69e5e4a9324..c279c4f2c9b732e49c4ee12126fa3301383df294 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/iio/iio.h>