ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors

modulename: st_lsm6dsx.ko

configname: CONFIG_IIO_ST_LSM6DSX

Linux Kernel Configuration
└─>Device Drivers
└─>Industrial I/O support
└─>Inertial measurement units
└─>SPI support
└─>ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors
In linux kernel since version 3.10 (release Date: 2013-06-30)  
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.

source code: