summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lsm303dlh_a.c
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2011-10-20 10:31:40 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:05 +0200
commita2ea60e5ec438a66518a02f1b91703b815ae1579 (patch)
treeefa97a58aaecf269b3676bd42fb355e8cedb2c00 /drivers/hwmon/lsm303dlh_a.c
parenta2283e55fb118961b53483dd9bf411bf42386d13 (diff)
lsm303dlh: add DocBook documentation
Adding DocBook documentation for lsm303dlh accelerometer and magnetometer drivers. ST-Ericsson ID: 277198 Change-Id: Idfca43aa6ffaa39b7f73d0135dc6d2b01a0a44c6 Signed-off-by: Chethan Krishna N <chethan.krishna@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23784 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Conflicts: Documentation/DocBook/Makefile
Diffstat (limited to 'drivers/hwmon/lsm303dlh_a.c')
-rw-r--r--drivers/hwmon/lsm303dlh_a.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/drivers/hwmon/lsm303dlh_a.c b/drivers/hwmon/lsm303dlh_a.c
index 7721310be06..1436e77a0d6 100644
--- a/drivers/hwmon/lsm303dlh_a.c
+++ b/drivers/hwmon/lsm303dlh_a.c
@@ -149,8 +149,27 @@ struct lsm303dlh_a_t {
short z;
};
-/*
- * accelerometer local data
+/**
+ * struct lsm303dlh_a_data - data structure used by lsm303dlh_a driver
+ * @client: i2c client
+ * @lock: mutex lock for sysfs operations
+ * @data: lsm303dlh_a_t struct containing x, y and z values
+ * @input_dev: input device
+ * @input_dev2: input device
+ * @pdata: lsm303dlh platform data
+ * @regulator: regulator
+ * @range: current range value of accelerometer
+ * @mode: current mode of operation
+ * @rate: current sampling rate
+ * @sleep_wake: sleep wake setting
+ * @shift_adjust: current shift adjust value set according to range
+ * @interrupt_control: interrupt control settings
+ * @interrupt_channel: interrupt channel 0 or 1
+ * @interrupt_configure: interrupt configurations for two channels
+ * @interrupt_duration: interrupt duration for two channels
+ * @interrupt_threshold: interrupt threshold for two channels
+ * @early_suspend: early suspend structure
+ * @device_status: device is ON, OFF or SUSPENDED
*/
struct lsm303dlh_a_data {
struct i2c_client *client;