aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorEric Piel <eric.piel@tremplin-utc.net>2009-02-04 18:12:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-05 15:56:47 -0500
commit80eda5fb5885d601ed2c712a0530770c0a23cc04 (patch)
tree91f5eba014223c57ec4e743b7ca4cdc246adeb73 /drivers/hwmon
parent6bfef2b3cfe1144bd1dc3aface9c63a3f06732a7 (diff)
lis3lv02d: add axes knowledge for HP 6530
Add support for the HP laptops of model 6530x for having correctly setup axes. Reported-by: Jerome Poulin <jeromepoulin@gmail.com> Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/hp_accel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/hp_accel.c b/drivers/hwmon/hp_accel.c
index 9d133bea7aed..f0d35567b045 100644
--- a/drivers/hwmon/hp_accel.c
+++ b/drivers/hwmon/hp_accel.c
@@ -153,6 +153,7 @@ static struct axis_conversion lis3lv02d_axis_y_inverted = {1, -2, 3};
153static struct axis_conversion lis3lv02d_axis_x_inverted = {-1, 2, 3}; 153static struct axis_conversion lis3lv02d_axis_x_inverted = {-1, 2, 3};
154static struct axis_conversion lis3lv02d_axis_z_inverted = {1, 2, -3}; 154static struct axis_conversion lis3lv02d_axis_z_inverted = {1, 2, -3};
155static struct axis_conversion lis3lv02d_axis_xy_rotated_left = {-2, 1, 3}; 155static struct axis_conversion lis3lv02d_axis_xy_rotated_left = {-2, 1, 3};
156static struct axis_conversion lis3lv02d_axis_xy_rotated_left_usd = {-2, 1, -3};
156static struct axis_conversion lis3lv02d_axis_xy_swap_inverted = {-2, -1, 3}; 157static struct axis_conversion lis3lv02d_axis_xy_swap_inverted = {-2, -1, 3};
157static struct axis_conversion lis3lv02d_axis_xy_rotated_right = {2, -1, 3}; 158static struct axis_conversion lis3lv02d_axis_xy_rotated_right = {2, -1, 3};
158 159
@@ -173,6 +174,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
173 AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted), 174 AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
174 AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted), 175 AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
175 AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left), 176 AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
177 AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
176 AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right), 178 AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
177 { NULL, } 179 { NULL, }
178/* Laptop models without axis info (yet): 180/* Laptop models without axis info (yet):