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>
This commit is contained in:

committed by
Jonathan Cameron

parent
7ab374a053
commit
780103fef5
@@ -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
|
||||
|
Reference in New Issue
Block a user