]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iio: magnetometer: support for lsm303dlh
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Apr 2015 13:15:50 +0000 (15:15 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 May 2015 09:42:34 +0000 (10:42 +0100)
commit1038a6872802bb4a07f627162ff989bf49e2e5cc
treeef6ecde1b4806c79c8c798741b63c2b8c4ca635c
parent5e02bac3172fcad964eeef70ad21f583982a6eba
iio: magnetometer: support for lsm303dlh

The LSM303DLH accelerometer/magnetometer has a different
device identification method than using register 0x0f, instead
three registers contain a magic value. We rely on WhoAmI
to be zero for this variant.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/st-sensors.txt
drivers/iio/magnetometer/st_magn.h
drivers/iio/magnetometer/st_magn_core.c
drivers/iio/magnetometer/st_magn_i2c.c