iio: Make possible to include driver.h first
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Mar 2019 13:47:00 +0000 (15:47 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:56 +0000 (20:20 +0100)
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>
include/linux/iio/driver.h

index 7dfb10ee26698b7c63b3ee5733c21ed60a75bd97..f54a7bcdefe352e2920b501c1ba21866b7bb633e 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef _IIO_INKERN_H_
 #define _IIO_INKERN_H_
 
+struct iio_dev;
 struct iio_map;
 
 /**