Re: [PATCH] iio:magnetometer: Replace magic number 0 by IIO_CHAN_INFO_RAW

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 11:47:55 -0300 Rodrigo Siqueira wrote: > The function magn_3d_read_raw has a switch statement handling multiple > cases per channel. The first case statement uses the magic number 0, > which means IIO_CHAN_INFO_RAW. Additionally, the

Re: [PATCH] iio:magnetometer: Replace magic number 0 by IIO_CHAN_INFO_RAW

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 11:47:55 -0300 Rodrigo Siqueira wrote: > The function magn_3d_read_raw has a switch statement handling multiple > cases per channel. The first case statement uses the magic number 0, > which means IIO_CHAN_INFO_RAW. Additionally, the iio_chan_spec for > magn_3d_channels is

[PATCH] iio:magnetometer: Replace magic number 0 by IIO_CHAN_INFO_RAW

2018-02-27 Thread Rodrigo Siqueira
The function magn_3d_read_raw has a switch statement handling multiple cases per channel. The first case statement uses the magic number 0, which means IIO_CHAN_INFO_RAW. Additionally, the iio_chan_spec for magn_3d_channels is configured to be IIO_CHAN_INFO_RAW. Therefore, this patch replaces the

[PATCH] iio:magnetometer: Replace magic number 0 by IIO_CHAN_INFO_RAW

2018-02-27 Thread Rodrigo Siqueira
The function magn_3d_read_raw has a switch statement handling multiple cases per channel. The first case statement uses the magic number 0, which means IIO_CHAN_INFO_RAW. Additionally, the iio_chan_spec for magn_3d_channels is configured to be IIO_CHAN_INFO_RAW. Therefore, this patch replaces the