thinkpad-acpi: handle HKEY 0x4010, 0x4011 events
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / iio / kfifo_buf.h
blobaac30539b2c67e4a5d408e05d5a83038429ed355
2 #include <linux/kfifo.h>
3 #include "iio.h"
4 #include "ring_generic.h"
6 struct iio_kfifo {
7 struct iio_ring_buffer ring;
8 struct kfifo kf;
9 int use_count;
10 int update_needed;
11 struct mutex use_lock;
14 extern const struct iio_ring_access_funcs kfifo_access_funcs;
16 struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
17 void iio_kfifo_free(struct iio_ring_buffer *r);