Re: [PATCH 25/38] iio: pressure-core: st: Allow for number of channels to vary

2013-09-16 Thread Jonathan Cameron
Lee Jones wrote: >On Sat, 14 Sep 2013, Jonathan Cameron wrote: > >> On 09/10/13 13:49, Lee Jones wrote: >> > 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 u

Re: [PATCH 25/38] iio: pressure-core: st: Allow for number of channels to vary

2013-09-16 Thread Lee Jones
On Sat, 14 Sep 2013, Jonathan Cameron wrote: > On 09/10/13 13:49, Lee Jones wrote: > > 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

Re: [PATCH 25/38] iio: pressure-core: st: Allow for number of channels to vary

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > 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 adapta

[PATCH 25/38] iio: pressure-core: st: Allow for number of channels to vary

2013-09-10 Thread Lee Jones
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. Si