From: Denis CIOCCA Date: Mon, 3 Jun 2013 14:58:00 +0000 (+0100) Subject: iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and... X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~209^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=607a568ab69c5ac345a286267a27294888f8bb5f;p=pandora-kernel.git iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and added support on one-shot sysfs reads to 3 byte channel This patch introduce num_data_channels variable on st_sensors struct to manage different type of channels (size or number) in st_sensors_get_buffer_element function. Removed ST_SENSORS_NUMBER_DATA_CHANNELS and ST_SENSORS_BYTE_FOR_CHANNEL and used struct iio_chan_spec const *ch to catch data. Added 3 byte channel data support on one-shot reads. Signed-off-by: Denis Ciocca Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed