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
└─>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:
LSM303C, LSM303DLHC, LSM303DLM, LIS3MDL.

Also need to enable at least one of I2C and SPI interface drivers
below.

source code: