Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-12 Thread Rodrigo Siqueira
On 03/12, Pandruvada, Srinivas wrote: > On Wed, 2018-03-07 at 20:20 +, Jonathan Cameron wrote: > > On Tue, 6 Mar 2018 09:00:11 -0300 > > Rodrigo Siqueira wrote: > > > > > The magn_3d_channels array has multiple declarations of > > > iio_chan_spec. > > > Most of

Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-12 Thread Rodrigo Siqueira
On 03/12, Pandruvada, Srinivas wrote: > On Wed, 2018-03-07 at 20:20 +, Jonathan Cameron wrote: > > On Tue, 6 Mar 2018 09:00:11 -0300 > > Rodrigo Siqueira wrote: > > > > > The magn_3d_channels array has multiple declarations of > > > iio_chan_spec. > > > Most of the iio_chan_spec are very

Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-12 Thread Pandruvada, Srinivas
On Wed, 2018-03-07 at 20:20 +, Jonathan Cameron wrote: > On Tue, 6 Mar 2018 09:00:11 -0300 > Rodrigo Siqueira wrote: > > > The magn_3d_channels array has multiple declarations of > > iio_chan_spec. > > Most of the iio_chan_spec are very similar, changing only

Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-12 Thread Pandruvada, Srinivas
On Wed, 2018-03-07 at 20:20 +, Jonathan Cameron wrote: > On Tue, 6 Mar 2018 09:00:11 -0300 > Rodrigo Siqueira wrote: > > > The magn_3d_channels array has multiple declarations of > > iio_chan_spec. > > Most of the iio_chan_spec are very similar, changing only by the > > .type > > and

Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-07 Thread Jonathan Cameron
On Tue, 6 Mar 2018 09:00:11 -0300 Rodrigo Siqueira wrote: > The magn_3d_channels array has multiple declarations of iio_chan_spec. > Most of the iio_chan_spec are very similar, changing only by the .type > and .channel2 field. This patch reduces the code

Re: [PATCH] iio:magnetometer: Remove duplications in iio_chan_spec

2018-03-07 Thread Jonathan Cameron
On Tue, 6 Mar 2018 09:00:11 -0300 Rodrigo Siqueira wrote: > The magn_3d_channels array has multiple declarations of iio_chan_spec. > Most of the iio_chan_spec are very similar, changing only by the .type > and .channel2 field. This patch reduces the code duplication by adding a > macro that can