From: Lee Jones Date: Tue, 10 Sep 2013 12:49:00 +0000 (+0100) Subject: iio: pressure-core: st: Allow for number of channels to vary X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~694^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea01f2c18a22a2a8385909d64662afc92da6b13f;p=pandora-kernel.git iio: pressure-core: st: Allow for number of channels to vary At the moment the number of channels specified is dictated by the first sensor supported by the driver. As we add support for more sensors this is likely to vary. Instead of using the ARRAY_SIZE() of the LPS331AP's channel specifier we'll use a new adaptable 'struct st_sensors' element instead. Signed-off-by: Lee Jones Acked-by: Denis Ciocca Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed