diff options
| author | 2014-11-26 18:55:16 +0100 | |
|---|---|---|
| committer | 2014-12-12 12:28:33 +0000 | |
| commit | 8d92db2827b68206f6930e79132243416183e083 (patch) | |
| tree | 87306f1100237e03eab910b49800ac40c36b6916 /include/linux/iio | |
| parent | iio: buffer: Allocate standard attributes in the core (diff) | |
| download | linux-dev-8d92db2827b68206f6930e79132243416183e083.tar.xz linux-dev-8d92db2827b68206f6930e79132243416183e083.zip | |
iio: buffer: Make length attribute read only for buffers without set_length
If a buffer implementation does not implement the set_length() callback the
length will be static and can not be changed by userspace. Mark the length
attribute as a read only property in this case so userspace is aware of this
rather than just silently accepting any length value.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
0 files changed, 0 insertions, 0 deletions
