]> git.baikalelectronics.ru Git - kernel.git/commit
lis3lv02d: add axes knowledge of HP Pavilion dv5 models
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 18 Feb 2009 22:48:25 +0000 (14:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 Feb 2009 23:37:54 +0000 (15:37 -0800)
commit590c085e71ce1b80ed449de91b2d46625016fb51
treeb10e951d376aef142d15eec40b634e7cfe339251
parenta0b2d47fb1f4f858ef211b6133de60a2a6a9012c
lis3lv02d: add axes knowledge of HP Pavilion dv5 models

Add support for HP Pavilion dv5.

Since Intel-based models have an inverted x axis, while AMD-based models
have an inverted y axis, we introduce a new macro that special-cases axis
orientation based on two DMI entries: HP dv5 axis configuration is then
based on both the PRODUCT and BOARD name.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Cc: Eric Piel <Eric.Piel@tremplin-utc.net>
Cc: Pavel Machek <pavel@suse.cz>
Tested-by: Palatis Tseng <palatis@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/hp_accel.c