5def839c48
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ak8974.c | ||
ak8975.c | ||
bmc150_magn.c | ||
bmc150_magn.h | ||
bmc150_magn_i2c.c | ||
bmc150_magn_spi.c | ||
hid-sensor-magn-3d.c | ||
hmc5843.h | ||
hmc5843_core.c | ||
hmc5843_i2c.c | ||
hmc5843_spi.c | ||
mag3110.c | ||
mmc35240.c | ||
st_magn.h | ||
st_magn_buffer.c | ||
st_magn_core.c | ||
st_magn_i2c.c | ||
st_magn_spi.c |