STMicroelectronics magnetometers 3-Axis Driver

modulename: st_magn.ko

configname: CONFIG_IIO_ST_MAGN_3AXIS

Linux Kernel Configuration
└─>Device Drivers
└─>Industrial I/O support
└─>Magnetometer sensors
└─>I2C support
└─>STMicroelectronics magnetometers 3-Axis Driver
In linux kernel since version 3.1 (release Date: 2011-10-24)  
Say yes here to build support for STMicroelectronics magnetometers:
LSM303DLHC, LSM303DLM, LIS3MDL.

This driver can also be built as a module. If so, these modules
will be created:
- st_magn (core functions for the driver [it is mandatory]);
- st_magn_i2c (necessary for the I2C devices [optional*]);
- st_magn_spi (necessary for the SPI devices [optional*]);

(*) one of these is necessary to do something.

source code: