From: Lars-Peter Clausen Date: Wed, 26 Nov 2014 17:55:16 +0000 (+0100) Subject: iio: buffer: Make length attribute read only for buffers without set_length X-Git-Tag: fixes-v4.0-rc1~99^2~245^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d92db2827b68206f6930e79132243416183e083;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed