aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lis3lv02d.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2009-02-18 17:48:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-18 18:37:54 -0500
commitef2cfc790bf5f0ff189b01eabc0f4feb5e8524df (patch)
tree1e1a4999a6615f66f56ffe19c883e065aa8d3020 /drivers/hwmon/lis3lv02d.h
parent3a5093ee6728c8cbe9c039e685fc1fca8f965048 (diff)
hp accelerometer: add freefall detection
This adds freefall handling to hp_accel driver. According to HP, it should just work, without us having to set the chip up by hand. hpfall.c is example .c program that parks the disk when accelerometer detects free fall. It should work; for now, it uses fixed 20seconds protection period. Signed-off-by: Pavel Machek <pavel@suse.cz> Cc: Thomas Renninger <trenn@suse.de> Cc: Éric Piel <eric.piel@tremplin-utc.net> 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h
index 223f1c0763bb..2e7597c42d80 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -170,6 +170,11 @@ struct acpi_lis3lv02d {
170 unsigned char is_on; /* whether the device is on or off */ 170 unsigned char is_on; /* whether the device is on or off */
171 unsigned char usage; /* usage counter */ 171 unsigned char usage; /* usage counter */
172 struct axis_conversion ac; /* hw -> logical axis */ 172 struct axis_conversion ac; /* hw -> logical axis */
173
174 u32 irq; /* IRQ number */
175 struct fasync_struct *async_queue; /* queue for the misc device */
176 wait_queue_head_t misc_wait; /* Wait queue for the misc device */
177 unsigned long misc_opened; /* bit0: whether the device is open */
173}; 178};
174 179
175int lis3lv02d_init_device(struct acpi_lis3lv02d *dev); 180int lis3lv02d_init_device(struct acpi_lis3lv02d *dev);