mirror of https://gitee.com/openkylin/linux.git
a8175ba335
The device has simple 8-bit registers but the driver incorrectly uses block or word reads without checking functionality bits. Fix by using i2c_smbus_read_i2c_block_data_or_emulated instead of i2c_smbus_read_i2c_block_data or i2c_smbus_read_word_data. This will check functionality bits and use the fastest available transfer method. Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
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 |