summaryrefslogtreecommitdiff
path: root/drivers/iio/common/ssp_sensors/ssp_dev.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2018-01-01 19:54:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:43 +0100
commit51a8b707627b437f17a153812f049daf3da6729d (patch)
tree937647f5a989dceb5e1493e656e8a2cf23928b16 /drivers/iio/common/ssp_sensors/ssp_dev.c
parent335eaedce461c9092e133ce0c6247f5a0b0baf69 (diff)
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>
Diffstat (limited to 'drivers/iio/common/ssp_sensors/ssp_dev.c')
0 files changed, 0 insertions, 0 deletions