diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-03-26 15:47:00 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-04 20:20:56 +0100 |
commit | 89c16919a0781308db6ca45e51a995e67cd90367 (patch) | |
tree | 5f1babf666cc16a506ee0820d8c5c31bfc1e7a35 /include/linux/iio | |
parent | e8379e05e811daa7a07aa0ac3ed958fedee1c504 (diff) | |
download | linux-89c16919a0781308db6ca45e51a995e67cd90367.tar.gz linux-89c16919a0781308db6ca45e51a995e67cd90367.tar.bz2 linux-89c16919a0781308db6ca45e51a995e67cd90367.zip |
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 <jic23@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/iio')
-rw-r--r-- | include/linux/iio/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; /** |