linux/drivers/iio/imu/st_lsm6dsx
Lorenzo Bianconi 51a8b70762 iio: imu: st_lsm6dsx: add regmap API support
Introduce regmap API support to access to i2c/spi bus instead of
using a custom support. Set max bulk read to
(32 / SAMPLE_SIZE) * SAMPLE_SIZE since spi_write_then_read() used in
regmap_spi indicates that is the max buffer length to use in order to
avoid a kmalloc for each bus access.
Remove lock mutex since concurrency is already managed by regmap API

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-08 16:03:43 +01:00
..
Kconfig iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00
Makefile
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00
st_lsm6dsx.h iio: imu: st_lsm6dsx: add regmap API support 2018-01-08 16:03:43 +01:00