summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNaga Radhesh <naga.radheshy@stericsson.com>2011-11-08 17:21:03 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:10 +0200
commite38b899c7d35e03ad9a66e40a7ca0092e34aa969 (patch)
tree252e05dfe137699aaa221477d10fa7d8ab4ae697 /include
parent04fb350c99fa8b59dbce567a696ce422bdc054dd (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.h2
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__ */