diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-04-30 15:15:50 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-07 11:42:34 +0200 |
commit | 1038a6872802bb4a07f627162ff989bf49e2e5cc (patch) | |
tree | ef6ecde1b4806c79c8c798741b63c2b8c4ca635c /drivers/iio/magnetometer/st_magn.h | |
parent | iio: st_sensors: make detection more helpful (diff) | |
download | linux-1038a6872802bb4a07f627162ff989bf49e2e5cc.tar.xz linux-1038a6872802bb4a07f627162ff989bf49e2e5cc.zip |
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>
Diffstat (limited to 'drivers/iio/magnetometer/st_magn.h')
-rw-r--r-- | drivers/iio/magnetometer/st_magn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h index 7e81d00ef0c3..287691ca56c1 100644 --- a/drivers/iio/magnetometer/st_magn.h +++ b/drivers/iio/magnetometer/st_magn.h @@ -14,6 +14,7 @@ #include <linux/types.h> #include <linux/iio/common/st_sensors.h> +#define LSM303DLH_MAGN_DEV_NAME "lsm303dlh_magn" #define LSM303DLHC_MAGN_DEV_NAME "lsm303dlhc_magn" #define LSM303DLM_MAGN_DEV_NAME "lsm303dlm_magn" #define LIS3MDL_MAGN_DEV_NAME "lis3mdl" |