commit | 8d92db2827b68206f6930e79132243416183e083 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Wed Nov 26 18:55:16 2014 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Fri Dec 12 12:28:33 2014 +0000 |
tree | 87306f1100237e03eab910b49800ac40c36b6916 | |
parent | 08e7e0adaa17205f86894157d86c4bee3c714330 [diff] |
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>