From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> struct iio_dev is only used in the platform code as an opaque pointer type so let us add a forwards definition instead of including the main IIO header. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> --- drivers/platform/chrome/cros_ec_sensorhub_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec_sensorhub_ring.c b/drivers/platform/chrome/cros_ec_sensorhub_ring.c index 98e37080f760..26ab852e1e1f 100644 --- a/drivers/platform/chrome/cros_ec_sensorhub_ring.c +++ b/drivers/platform/chrome/cros_ec_sensorhub_ring.c @@ -7,7 +7,6 @@ #include <linux/delay.h> #include <linux/device.h> -#include <linux/iio/iio.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_data/cros_ec_commands.h> @@ -19,6 +18,8 @@ #include "cros_ec_trace.h" +struct iio_dev; + /* Precision of fixed point for the m values from the filter */ #define M_PRECISION BIT(23) -- 2.33.0