iio: Make possible to include driver.h first
PATCH 1/1 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 <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
--- include/linux/iio/driver.h | 1 + 1 file changed, 1 insertion(+)
include/linux/iio/driver.h +1 -0
@@ -11,6 +11,7 @@#ifndef _IIO_INKERN_H_#define _IIO_INKERN_H_ +struct iio_dev ;struct iio_map ;/**
Signature · 1 line
2.20.1
Quoted 7 lines · On Tue, 26 Mar 2019 15:47:00 +0200 Andy Shevchenko…
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 <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>
Applied,
Thanks,
Jonathan
Quoted 16 lines
--- include/linux/iio/driver.h | 1 + 1 file changed, 1 insertion(+)include/linux/iio/driver.h +1
-0@@ -11,6 +11,7 @@#ifndef _IIO_INKERN_H_#define _IIO_INKERN_H_ +struct iio_dev ;struct iio_map ;/**