Skip to content

Commit

Permalink
staging: iio: kfifo buffer - push structure definition down into impl…
Browse files Browse the repository at this point in the history
…ementation.

Nothing other than the implementation needs to know about this.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent fd776ba commit a710cc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions drivers/staging/iio/kfifo_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

#include "kfifo_buf.h"

struct iio_kfifo {
struct iio_ring_buffer ring;
struct kfifo kf;
int use_count;
int update_needed;
struct mutex use_lock;
};

#define iio_to_kfifo(r) container_of(r, struct iio_kfifo, ring)

static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
Expand Down
8 changes: 0 additions & 8 deletions drivers/staging/iio/kfifo_buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
#include "iio.h"
#include "ring_generic.h"

struct iio_kfifo {
struct iio_ring_buffer ring;
struct kfifo kf;
int use_count;
int update_needed;
struct mutex use_lock;
};

extern const struct iio_ring_access_funcs kfifo_access_funcs;

struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
Expand Down

0 comments on commit a710cc7

Please sign in to comment.