From: Pavel Machek Date: Wed, 18 Feb 2009 22:48:23 +0000 (-0800) Subject: hp accelerometer: add freefall detection X-Git-Tag: v2.6.29-rc6~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2cfc790bf5f0ff189b01eabc0f4feb5e8524df;p=pandora-kernel.git 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 Cc: Thomas Renninger Cc: Éric Piel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed