diff options
author | Naga Radhesh <naga.radheshy@stericsson.com> | 2011-11-08 17:21:03 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:01:32 +0100 |
commit | 9e48659950d6e4bca07d6f8bb169bb838bdc5ecb (patch) | |
tree | 350534f58ce3d53e3eb9bd4fcdd09f0bc24dc001 /include | |
parent | 1fac8853e6267a5bc26b3bac59301493b5c3113b (diff) |
lsm303dlh_m: Check for DLHC device to invert y,z
Invert y,z co-ordinates as specified in data sheet
if device is LSM303DLHC
ST-Ericsson ID: 374970
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id:I45e706e3f783dd58e02f23d9579f3422ef7fc984
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36886
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lsm303dlh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lsm303dlh.h b/include/linux/lsm303dlh.h index ad369b1fbd5..a565faa79ba 100644 --- a/include/linux/lsm303dlh.h +++ b/include/linux/lsm303dlh.h @@ -42,6 +42,7 @@ * @negative_x: x axis is orientation, 0 or 1 * @negative_y: y axis is orientation, 0 or 1 * @negative_z: z axis is orientation, 0 or 1 + * @chip_id: to store ID of the LSM chip */ struct lsm303dlh_platform_data { const char *name_a; @@ -55,6 +56,7 @@ struct lsm303dlh_platform_data { u8 negative_x; u8 negative_y; u8 negative_z; + u32 chip_id; }; #endif /* __KERNEL__ */ |