Skip to content

Commit

Permalink
staging:iio:iio_core.h make less dependent on other included headers
Browse files Browse the repository at this point in the history
There are a lot of pointers to structures used in here that are not
declared unless a particular header is included first.  Deal with
the IIO specific ones by putting in forward declarations and the
other ones by including kernel.h and device.h.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Apr 13, 2012
1 parent a7322fc commit ef97d42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/iio/iio_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

#ifndef _IIO_CORE_H_
#define _IIO_CORE_H_
#include <linux/kernel.h>
#include <linux/device.h>

struct iio_chan_spec;
struct iio_dev;


int __iio_add_chan_devattr(const char *postfix,
struct iio_chan_spec const *chan,
Expand Down

0 comments on commit ef97d42

Please sign in to comment.