diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-12-19 14:23:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-22 21:38:09 (GMT) |
commit | 869871b58c7f7c26ccf7a89cbe599e9b963b8e69 (patch) | |
tree | 8835f3b8496c2c1228886762786a247930208c0a /drivers/staging/iio/Documentation | |
parent | 307276cb8366d9c163160fe2775f5bfe7b9c1495 (diff) | |
download | linux-fsl-qoriq-869871b58c7f7c26ccf7a89cbe599e9b963b8e69.tar.xz |
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>
Diffstat (limited to 'drivers/staging/iio/Documentation')
-rw-r--r-- | drivers/staging/iio/Documentation/ring.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/Documentation/ring.txt b/drivers/staging/iio/Documentation/ring.txt index 1b77aee..0f21479 100644 --- a/drivers/staging/iio/Documentation/ring.txt +++ b/drivers/staging/iio/Documentation/ring.txt @@ -39,8 +39,6 @@ rip_first_n The primary buffer reading function. Note that it may well not return as much data as requested. -mark_param_changed - Used to indicate that something has changed. Used in conjunction with request_update If parameters have changed that require reinitialization or configuration of the buffer this will trigger it. |