From: Jonathan Cameron Date: Tue, 30 Aug 2011 11:32:43 +0000 (+0100) Subject: staging: iio: kfifo buffer - push structure definition down into implementation. X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~752 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a710cc77db9785993cddecc966a662cb772b3ad9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: iio: kfifo buffer - push structure definition down into implementation. Nothing other than the implementation needs to know about this. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/kfifo_buf.c b/drivers/staging/iio/kfifo_buf.c index 6002368fdcfa..3c9516b2a670 100644 --- a/drivers/staging/iio/kfifo_buf.c +++ b/drivers/staging/iio/kfifo_buf.c @@ -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, diff --git a/drivers/staging/iio/kfifo_buf.h b/drivers/staging/iio/kfifo_buf.h index aac30539b2c6..fb48523748e6 100644 --- a/drivers/staging/iio/kfifo_buf.h +++ b/drivers/staging/iio/kfifo_buf.h @@ -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);