Skip to content

Commit

Permalink
iio: Make possible to include driver.h first
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
andy-shev authored and jic23 committed Apr 4, 2019
1 parent e8379e0 commit 89c1691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/iio/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef _IIO_INKERN_H_
#define _IIO_INKERN_H_

struct iio_dev;
struct iio_map;

/**
Expand Down

0 comments on commit 89c1691

Please sign in to comment.