Skip to contentSkip to conversation

hp_accel: add two more axis information

PATCH Pavel Machek 3 participants 5 messages Mar 8, 2009 – Mar 23, 2009 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

Add two more laptops to whitelist.

drivers/hwmon/hp_accel.c +2 -0
index 29c83b5..448a462 100644
@@ -187,6 +187,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
 	AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
 	AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
+	AXIS_DMI_MATCH("HP2140", "HP 2140", xy_swap_inverted),
 	AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
@@ -201,6 +202,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 			PRODUCT_NAME, "HP Pavilion dv5",
 			BOARD_NAME, "3600",
 			y_inverted),
+	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 19 lines · Pavel Machek

Add two more laptops to whitelist.

drivers/hwmon/hp_accel.c +1 -0
index 29c83b5..448a462 100644
@@ -187,6 +187,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
 	AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
 	AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
+	AXIS_DMI_MATCH("HP2140", "HP 2140", xy_swap_inverted),
 	AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),

drivers/hwmon/hp_accel.c static struct dmi_system_id lis3lv02d_dmi_ids[] = { · line 208

Quoted 7 lines
drivers/hwmon/hp_accel.c +1 -0
@@ -201,6 +202,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 			PRODUCT_NAME, "HP Pavilion dv5",
 			BOARD_NAME, "3600",
 			y_inverted),
+	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"

Does this apply on top of my recent ACPI resolve patches? Could you test the latest versions already?

Daniel

#2 lore raw
Quoted 22 lines · Daniel Mack
Quoted 21 lines · Pavel Machek

Add two more laptops to whitelist.

drivers/hwmon/hp_accel.c +1 -0
index 29c83b5..448a462 100644
@@ -187,6 +187,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
 	AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
 	AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
+	AXIS_DMI_MATCH("HP2140", "HP 2140", xy_swap_inverted),
 	AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
@@ -201,6 +202,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 			PRODUCT_NAME, "HP Pavilion dv5",
 			BOARD_NAME, "3600",
Quoted 8 lines

drivers/hwmon/hp_accel.c static struct dmi_system_id lis3lv02d_dmi_ids[] = { · line 208

Quoted 5 lines
drivers/hwmon/hp_accel.c +1 -0
 			y_inverted),
+	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"

Does this apply on top of my recent ACPI resolve patches? Could you test the latest versions already?

I guess it should; you did not change anything in the whitelist. Unfortunately, I no longer have hardware to do testing.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw
Quoted 32 lines · On Sun, 8 Mar 2009 22:07:57 +0100 Pavel Machek <[email protected]> wrote:
Quoted 22 lines · Daniel Mack
Quoted 21 lines · Pavel Machek

Add two more laptops to whitelist.

drivers/hwmon/hp_accel.c +1 -0
index 29c83b5..448a462 100644
@@ -187,6 +187,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
 	AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
 	AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
+	AXIS_DMI_MATCH("HP2140", "HP 2140", xy_swap_inverted),
 	AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
@@ -201,6 +202,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 			PRODUCT_NAME, "HP Pavilion dv5",
 			BOARD_NAME, "3600",
Quoted 8 lines

drivers/hwmon/hp_accel.c static struct dmi_system_id lis3lv02d_dmi_ids[] = { · line 208

Quoted 5 lines
drivers/hwmon/hp_accel.c +1 -0
 			y_inverted),
+	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"

Does this apply on top of my recent ACPI resolve patches? Could you test the latest versions already?

Quoted 2 lines

I guess it should; you did not change anything in the whitelist. Unfortunately, I no longer have hardware to do testing.

I'm all confused and don't know what to do with this patch.

I guess I'll just apply it and see if I get shouted at.

#4 lore raw
Quoted 34 lines · Andrew Morton
Quoted 32 lines · On Sun, 8 Mar 2009 22:07:57 +0100 Pavel Machek <[email protected]> wrote:
Quoted 30 lines · Daniel Mack
Quoted 19 lines · Pavel Machek

Add two more laptops to whitelist.

drivers/hwmon/hp_accel.c +1 -0
index 29c83b5..448a462 100644
@@ -187,6 +187,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC2510", "HP Compaq 2510", y_inverted),
 	AXIS_DMI_MATCH("NC8510", "HP Compaq 8510", xy_swap_inverted),
 	AXIS_DMI_MATCH("HP2133", "HP 2133", xy_rotated_left),
+	AXIS_DMI_MATCH("HP2140", "HP 2140", xy_swap_inverted),
 	AXIS_DMI_MATCH("NC653x", "HP Compaq 653", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),

drivers/hwmon/hp_accel.c static struct dmi_system_id lis3lv02d_dmi_ids[] = { · line 208

Quoted 7 lines
drivers/hwmon/hp_accel.c +1 -0
@@ -201,6 +202,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 			PRODUCT_NAME, "HP Pavilion dv5",
 			BOARD_NAME, "3600",
 			y_inverted),
+	AXIS_DMI_MATCH("DV7", "HP Pavilion dv7", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"

Does this apply on top of my recent ACPI resolve patches? Could you test the latest versions already?

Quoted 6 lines
Quoted 2 lines

I guess it should; you did not change anything in the whitelist. Unfortunately, I no longer have hardware to do testing.

I'm all confused and don't know what to do with this patch.

I guess I'll just apply it and see if I get shouted at.

That sounds like a plan :-). And I don't think you'll get shouted at, the patch should be very safe.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html