Skip to content

Commit 89c1691

Browse files
andy-shevJonathan Cameron
authored andcommitted
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>
1 parent e8379e0 commit 89c1691

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/iio/driver.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef _IIO_INKERN_H_
1212
#define _IIO_INKERN_H_
1313

14+
struct iio_dev;
1415
struct iio_map;
1516

1617
/**

0 commit comments

Comments
 (0)