summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlejandro Gonzalez <alex.gonzalez@digi.com>2010-01-20 13:59:11 +0100
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-02-12 18:31:09 +0100
commit4dd20f06b0a28f922787c1d146a8742c3962b9bf (patch)
treec72a8ba00621473988fc76e76f8f11767d3702f6 /include
parent39c8a74044e80fa56e3265f54ed96ad4038f89e0 (diff)
ccwmx51: Support for the I2C2 bus.
Register the mma7455l accelerometer chip with the I2C2 bus and add a client driver for the mma7455l device. The chip is probed and I2C R/W transactions are working. No other test on the mma7455l driver has been performed at this stage. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mma7455l.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mma7455l.h b/include/linux/mma7455l.h
new file mode 100644
index 000000000000..12ab50affd84
--- /dev/null
+++ b/include/linux/mma7455l.h
@@ -0,0 +1,11 @@
+#ifndef _LINUX_MMA7455L_H
+#define _LINUX_MMA7455L_H
+
+struct mma7455l_platform_data {
+ /* Calibration offsets */
+ s16 calibration_x;
+ s16 calibration_y;
+ s16 calibration_z;
+};
+
+#endif /* _LINUX_MMA7455L_H */