From: Andy Shevchenko Date: Tue, 26 Mar 2019 13:47:00 +0000 (+0200) Subject: iio: Make possible to include driver.h first X-Git-Tag: v5.2-rc1~153^2~149^2~10 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=89c16919a0781308db6ca45e51a995e67cd90367;p=users%2Fjedix%2Flinux-maple.git iio: Make possible to include driver.h first If we put headers alphabetically sorted in the IIO driver, the compilation will abort because of unknown type to handle. Simple add a forward declaration of opaque struct iio_dev. Suggested-by: Jonathan Cameron Signed-off-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- diff --git a/include/linux/iio/driver.h b/include/linux/iio/driver.h index 7dfb10ee2669..f54a7bcdefe3 100644 --- a/include/linux/iio/driver.h +++ b/include/linux/iio/driver.h @@ -11,6 +11,7 @@ #ifndef _IIO_INKERN_H_ #define _IIO_INKERN_H_ +struct iio_dev; struct iio_map; /**