From: Lars-Peter Clausen Date: Fri, 29 May 2015 16:14:21 +0000 (+0200) Subject: iio: Specify supported modes for buffers X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~256^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225d59adf1c899176cce0fc80e42b1d1c12f109f;p=pandora-kernel.git iio: Specify supported modes for buffers For each buffer type specify the supported device modes for this buffer. This allows us for devices which support multiple different operating modes to pick the correct operating mode based on the modes supported by the attached buffers. It also prevents that buffers with conflicting modes are attached to a device at the same time or that a buffer with a non-supported mode is attached to a device (e.g. in-kernel callback buffer to a device only supporting hardware mode). Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed