iio: buffer: Allocate standard attributes in the core
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:15 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:33 +0000 (12:28 +0000)
commit08e7e0adaa17205f86894157d86c4bee3c714330
tree15d98c47f3eafdf539e8921c7cda4571eb9a67c3
parentd967cb6bd4e79c0cd7b150f1382d3d04e00408a0
iio: buffer: Allocate standard attributes in the core

All buffers want at least the length and the enable attribute. Move the
creation of those attributes to the core instead of having to do this in
each individual buffer implementation. This allows us to get rid of some
boiler-plate code.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c
drivers/iio/kfifo_buf.c
drivers/staging/iio/accel/sca3000_ring.c
include/linux/iio/buffer.h
This page took 0.025436 seconds and 5 git commands to generate.