Skip to contentSkip to conversation

lis3: add support for HP ProBook 432x/442x/452x/522x

PATCH In review Takashi Iwai 2 participants 2 messages Apr 7, 2010 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lis3: add support for HP ProBook 432x/442x/452x/522x

Correct axis-mappings for new HP ProBook laptops.

---
 drivers/hwmon/hp_accel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/hwmon/hp_accel.c +4 -0
index be475e8..c8ab505 100644
@@ -217,6 +217,10 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	AXIS_DMI_MATCH("HP8710", "HP Compaq 8710", y_inverted),
 	AXIS_DMI_MATCH("HDX18", "HP HDX 18", x_inverted),
+	AXIS_DMI_MATCH("HPB432x", "HP ProBook 432", xy_rotated_left),
+	AXIS_DMI_MATCH("HPB442x", "HP ProBook 442", xy_rotated_left),
+	AXIS_DMI_MATCH("HPB452x", "HP ProBook 452", y_inverted),
+	AXIS_DMI_MATCH("HPB522x", "HP ProBook 522", xy_swap),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"
Signature · 1 line
1.7.0.3
Acked-by on v1 1/1
#1 lore raw

Op 07-04-10 22:52, Takashi Iwai schreef:

Quoted 3 lines

Correct axis-mappings for new HP ProBook laptops.

Looks fine. Thanks Takashi!

Eric

Quoted 19 lines
---
 drivers/hwmon/hp_accel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/hwmon/hp_accel.c +4 -0
index be475e8..c8ab505 100644
@@ -217,6 +217,10 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	AXIS_DMI_MATCH("HP8710", "HP Compaq 8710", y_inverted),
 	AXIS_DMI_MATCH("HDX18", "HP HDX 18", x_inverted),
+	AXIS_DMI_MATCH("HPB432x", "HP ProBook 432", xy_rotated_left),
+	AXIS_DMI_MATCH("HPB442x", "HP ProBook 442", xy_rotated_left),
+	AXIS_DMI_MATCH("HPB452x", "HP ProBook 452", y_inverted),
+	AXIS_DMI_MATCH("HPB522x", "HP ProBook 522", xy_swap),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"