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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -11,6 +11,7 @@ · 10 unmodified lines | ||
| 11 | 11 | #ifndef _IIO_INKERN_H_ |
| 12 | 12 | #define _IIO_INKERN_H_ |
| 13 | 13 | |
| 14 | +struct iio_dev; | |
| 14 | 15 | struct iio_map; |
| 15 | 16 | |
| 16 | 17 | /** |