]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio: Drop buffer mark_param_change callback
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 19 Dec 2011 14:23:48 +0000 (15:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Dec 2011 21:38:09 +0000 (13:38 -0800)
commite609d3f03dfd59ebb298ae0fbcba5146bddc8dda
tree8835f3b8496c2c1228886762786a247930208c0a
parente5ef58ac3ff7c2ab9a3d71202346e773a92483a3
staging:iio: Drop buffer mark_param_change callback

Right now we have a mark_param_change callback in the buffer access
functions struct, which should be called whenever the parameters (length,
bytes per datum) of the buffer change. But it is only called when the user
changes the buffer size, not when the bytes per datum change. Additionally each
buffer implementation already keeps track internally whether its parameters
have changed, making the call to mark_param_change after changing the buffer
length redundant. Since each buffer implementation knows best when one of its
parameters has changed just make tracking of this internal and drop the
mark_param_change callback.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Documentation/ring.txt
drivers/staging/iio/buffer.h
drivers/staging/iio/industrialio-buffer.c
drivers/staging/iio/kfifo_buf.c
drivers/staging/iio/ring_sw.c