From: Marcus Folkesson Date: Fri, 24 Jan 2014 11:24:00 +0000 (+0000) Subject: iio: adis16400: Set timestamp as the last element in chan_spec X-Git-Tag: v3.14-rc3~12^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76782d151dab7ecfdcdf9a01561c2d61d9b490f;p=pandora-kernel.git iio: adis16400: Set timestamp as the last element in chan_spec This is necessary since timestamp is calculated as the last element in iio_compute_scan_bytes(). Without this fix any userspace code reading the layout of the buffer via sysfs will incorrectly interpret the data leading some nasty corruption. Signed-off-by: Marcus Folkesson Acked-by: Lars-Peter Clausen Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed