iio: buffer: Make length attribute read only for buffers without set_length
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:16 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:33 +0000 (12:28 +0000)
commit8d92db2827b68206f6930e79132243416183e083
tree87306f1100237e03eab910b49800ac40c36b6916
parent08e7e0adaa17205f86894157d86c4bee3c714330
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>
drivers/iio/industrialio-buffer.c
This page took 0.025892 seconds and 5 git commands to generate.