diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-10-13 18:10:25 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-10-25 13:50:42 +0000 |
commit | 4a60535726d90bfad16b5c52dcffaeede9fb84a9 (patch) | |
tree | a81823dc3641cf152b3235b1d7e54f59531a33b9 /include/linux | |
parent | f0566c0c405de543efb6fb8b8988cc7743d85ea6 (diff) |
iio:iio_buffer_init(): Only set watermark if not already set
Only initialize the watermark field if it is still 0. This allows drivers
to provide a custom default watermark value. E.g. some driver might have a
fixed watermark or can only support watermarks within a certain range and
the initial value for the watermark should be within this range.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions