summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lis3lv02d.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2009-12-15 05:01:41 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 19:53:36 +0300
commit641615abfac0b7c5e6f242a6db77f7690925b443 (patch)
treeab47ff8a53364cc912e177b98bf4c155aea35ab4 /drivers/hwmon/lis3lv02d.h
parent4b5d95b3809bcd77599122494aa3f575cd6ab1b9 (diff)
downloadlinux-641615abfac0b7c5e6f242a6db77f7690925b443.tar.xz
lis3lv02d: proper power on sequence
Lis3 accelerometer sensors have quite long power on delay (up to 125 ms). This patch adds necessary delay to power on sequence for currently supported lis3 chips. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Tested-by: Éric Piel <eric.piel@tremplin-utc.net> Acked-by: Éric Piel <eric.piel@tremplin-utc.net> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hwmon/lis3lv02d.h')
-rw-r--r--drivers/hwmon/lis3lv02d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h
index c6ae507e4f1e..c57f21f45676 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -202,6 +202,7 @@ struct lis3lv02d {
u8 whoami; /* indicates measurement precision */
s16 (*read_data) (struct lis3lv02d *lis3, int reg);
int mdps_max_val;
+ int pwron_delay;
struct input_polled_dev *idev; /* input device */
struct platform_device *pdev; /* platform device */