diff mbox series

[1/7] platform/chrome: cros_ec_sensorhub_ring - avoid including iio.h

Message ID 20211003121711.279736-2-jic23@kernel.org (mailing list archive)
State New, archived
Headers show
Series cros_ec_sensors: Drop unused IIO header includes | expand

Commit Message

Jonathan Cameron Oct. 3, 2021, 12:17 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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@huawei.com>
 drivers/platform/chrome/cros_ec_sensorhub_ring.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series


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)