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 magic number 0 for the appropriate IIO_CHAN_INFO_RAW. Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> |
||
|---|---|---|
| .. | ||
| ak8974.c | ||
| ak8975.c | ||
| bmc150_magn_i2c.c | ||
| bmc150_magn_spi.c | ||
| bmc150_magn.c | ||
| bmc150_magn.h | ||
| hid-sensor-magn-3d.c | ||
| hmc5843_core.c | ||
| hmc5843_i2c.c | ||
| hmc5843_spi.c | ||
| hmc5843.h | ||
| Kconfig | ||
| mag3110.c | ||
| Makefile | ||
| mmc35240.c | ||
| st_magn_buffer.c | ||
| st_magn_core.c | ||
| st_magn_i2c.c | ||
| st_magn_spi.c | ||
| st_magn.h | ||