]> git.baikalelectronics.ru Git - kernel.git/commit
hp accelerometer: add freefall detection
authorPavel Machek <pavel@suse.cz>
Wed, 18 Feb 2009 22:48:23 +0000 (14:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 Feb 2009 23:37:54 +0000 (15:37 -0800)
commit24f6009cbfc059bf5f61eca7919fb13edf00f279
tree1e1a4999a6615f66f56ffe19c883e065aa8d3020
parent923056e9ade57d1ca4d89c77ed51a90675bb8190
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>
Documentation/hwmon/hpfall.c [new file with mode: 0644]
Documentation/hwmon/lis3lv02d
drivers/hwmon/hp_accel.c
drivers/hwmon/lis3lv02d.c
drivers/hwmon/lis3lv02d.h