summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2017-01-02 19:28:26 +0000
committerJonathan Cameron <jic23@kernel.org>2017-01-10 19:54:50 +0000
commit9f4667776c138df33c4107fcd8811aa9cb6cdcbe (patch)
tree3e2222a63f31ff57116c3266f8c4ece5f744beea /include
parent263cf5e6577a779cc3311c5290325ef3917de2ea (diff)
downloadop-kernel-dev-9f4667776c138df33c4107fcd8811aa9cb6cdcbe.zip
op-kernel-dev-9f4667776c138df33c4107fcd8811aa9cb6cdcbe.tar.gz
iio:buffer: Introduced a function to assign the buffer specific attrs.
This is a necessary step in taking the buffer implementation opaque. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/iio/buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h
index 4a65a7b..30ea980 100644
--- a/include/linux/iio/buffer.h
+++ b/include/linux/iio/buffer.h
@@ -17,6 +17,8 @@
struct iio_buffer;
+void iio_buffer_set_attrs(struct iio_buffer *buffer,
+ const struct attribute **attrs);
/**
* INDIO_BUFFER_FLAG_FIXED_WATERMARK - Watermark level of the buffer can not be
* configured. It has a fixed value which will be buffer specific.
OpenPOWER on IntegriCloud