forked from Minki/linux
51a8b70762
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>
25 lines
632 B
Plaintext
25 lines
632 B
Plaintext
|
|
config IIO_ST_LSM6DSX
|
|
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors"
|
|
depends on (I2C || SPI)
|
|
select IIO_BUFFER
|
|
select IIO_KFIFO_BUF
|
|
select IIO_ST_LSM6DSX_I2C if (I2C)
|
|
select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
|
|
help
|
|
Say yes here to build support for STMicroelectronics LSM6DSx imu
|
|
sensor. Supported devices: lsm6ds3, lsm6ds3h, lsm6dsl, lsm6dsm
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called st_lsm6dsx.
|
|
|
|
config IIO_ST_LSM6DSX_I2C
|
|
tristate
|
|
depends on IIO_ST_LSM6DSX
|
|
select REGMAP_I2C
|
|
|
|
config IIO_ST_LSM6DSX_SPI
|
|
tristate
|
|
depends on IIO_ST_LSM6DSX
|
|
select REGMAP_SPI
|