aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChethan Krishna N <chethan.krishna@stericsson.com>2011-02-10 15:29:38 +0530
committerHenrik Öhman <henrik.ohman@stericsson.com>2011-03-11 08:25:57 +0100
commit6552774c09d5be9c1f7d73139f6dbff0b9f9b8a7 (patch)
tree2d46a4aaae8b6f8f5ac5558b4c23d819690843a2 /include
parent168db6a41695472548149be54643d2cf1f8be7d8 (diff)
l3g4200d: Adding Gyroscope support
Adding l3g4200d gyroscope driver using SYSFS interface. This driver also supports regulator. ST Ericsson ID: CR321304 Change-Id: I4bae6adfd5bfdadb446511767a36feee3e11a1de Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14902 Reviewed-by: Preetham Rao K <preetham.rao@stericsson.com> Tested-by: Preetham Rao K <preetham.rao@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/l3g4200d.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/l3g4200d.h b/include/linux/l3g4200d.h
new file mode 100644
index 00000000000..28459601e4f
--- /dev/null
+++ b/include/linux/l3g4200d.h
@@ -0,0 +1,27 @@
+/*
+ * ST L3G4200D 3-Axis Gyroscope header file
+ *
+ * Copyright (C) ST-Ericsson SA 2011
+ * Author: Chethan Krishna N <chethan.krishna@stericsson.com> for ST-Ericsson
+ * Licence terms: GNU General Public Licence (GPL) version 2
+ */
+
+#ifndef __L3G4200D_H__
+#define __L3G4200D_H__
+
+#ifdef __KERNEL__
+struct l3g4200d_gyr_platform_data {
+ const char *name_gyr;
+
+ u8 axis_map_x;
+ u8 axis_map_y;
+ u8 axis_map_z;
+
+ u8 negative_x;
+ u8 negative_y;
+ u8 negative_z;
+};
+
+#endif /* __KERNEL__ */
+
+#endif /* __L3G4200D_H__ */