diff options
author | Karol Wrona <k.wrona@samsung.com> | 2014-12-19 20:39:25 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-26 14:39:57 +0300 |
commit | 780103fef5c88a97fb9c8d0079bf326ed6147f1f (patch) | |
tree | 7d3f317dabc20607a14439e426955b66361bc216 /include/linux/iio/kfifo_buf.h | |
parent | 7ab374a053a43050117eb452306b6cd9dcb58cfd (diff) | |
download | linux-780103fef5c88a97fb9c8d0079bf326ed6147f1f.tar.xz |
iio: kfifo: Add resource management devm_iio_kfifo_allocate/free
iio kfifo allocate/free gained their devm_ wrappers.
Signed-off-by: Karol Wrona <k.wrona@samsung.com>
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/kfifo_buf.h')
-rw-r--r-- | include/linux/iio/kfifo_buf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iio/kfifo_buf.h b/include/linux/iio/kfifo_buf.h index 1a8d57a41738..1683bc710d14 100644 --- a/include/linux/iio/kfifo_buf.h +++ b/include/linux/iio/kfifo_buf.h @@ -8,4 +8,7 @@ struct iio_buffer *iio_kfifo_allocate(void); void iio_kfifo_free(struct iio_buffer *r); +struct iio_buffer *devm_iio_kfifo_allocate(struct device *dev); +void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r); + #endif |