diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-12-19 15:23:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-22 13:38:09 -0800 |
commit | 869871b58c7f7c26ccf7a89cbe599e9b963b8e69 (patch) | |
tree | 8835f3b8496c2c1228886762786a247930208c0a /drivers/staging/iio/Documentation | |
parent | staging:iio: Drop the unused buffer enable() and is_enabled() callbacks (diff) | |
download | linux-dev-869871b58c7f7c26ccf7a89cbe599e9b963b8e69.tar.xz linux-dev-869871b58c7f7c26ccf7a89cbe599e9b963b8e69.zip |
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 1b77aeef1790..0f21479ef4ef 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. |