Skip to contentSkip to conversation

hp_accel: Add support for HP ProBook 440 G3

PATCH In review Martin Vajnar 3 participants 4 messages Apr 2, 2016 – Apr 15, 2016 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hp_accel: Add support for HP ProBook 440 G3

HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).

---
 drivers/platform/x86/hp_accel.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/x86/hp_accel.c +2 -0
index 10ce6cb..263002b 100644
@@ -173,6 +173,7 @@ static int lis3lv02d_dmi_matched(const struct dmi_system_id *dmi)
 DEFINE_CONV(normal, 1, 2, 3);
 DEFINE_CONV(y_inverted, 1, -2, 3);
 DEFINE_CONV(x_inverted, -1, 2, 3);
+DEFINE_CONV(x_inverted_usd, -1, 2, -3);
 DEFINE_CONV(z_inverted, 1, 2, -3);
 DEFINE_CONV(xy_swap, 2, 1, 3);
 DEFINE_CONV(xy_rotated_left, -2, 1, 3);
@@ -236,6 +237,7 @@ static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	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("HPB440G3", "HP ProBook 440 G3", x_inverted_usd),
 	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),
Signature · 1 line
2.5.0
#1 lore raw
Quoted 3 lines · Martin Vajnar

HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).

Eric, this looks good to me. Any concerns?

Quoted 28 lines
---
 drivers/platform/x86/hp_accel.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/x86/hp_accel.c +2 -0
index 10ce6cb..263002b 100644
@@ -173,6 +173,7 @@ static int lis3lv02d_dmi_matched(const struct dmi_system_id *dmi)
 DEFINE_CONV(normal, 1, 2, 3);
 DEFINE_CONV(y_inverted, 1, -2, 3);
 DEFINE_CONV(x_inverted, -1, 2, 3);
+DEFINE_CONV(x_inverted_usd, -1, 2, -3);
 DEFINE_CONV(z_inverted, 1, 2, -3);
 DEFINE_CONV(xy_swap, 2, 1, 3);
 DEFINE_CONV(xy_rotated_left, -2, 1, 3);
@@ -236,6 +237,7 @@ static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	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("HPB440G3", "HP ProBook 440 G3", x_inverted_usd),
 	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),
Signature · 1 line
2.5.0
Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
Acked-by
#2 lore raw
Quoted 6 lines · Darren Hart
Quoted 3 lines · Martin Vajnar

HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).

Eric, this looks good to me. Any concerns?

Hi Darren, Martin,

Indeed it looks fine :-)

Here is my:

Darren, could you pick it up in your tree?

Thanks,
Éric

Quoted 30 lines
Quoted 29 lines
---
  drivers/platform/x86/hp_accel.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/platform/x86/hp_accel.c +2 -1
index 10ce6cb..263002b 100644
@@ -173,6 +173,7 @@ static int lis3lv02d_dmi_matched(const struct dmi_system_id *dmi)
  DEFINE_CONV(normal, 1, 2, 3);
  DEFINE_CONV(y_inverted, 1, -2, 3);
  DEFINE_CONV(x_inverted, -1, 2, 3);
+DEFINE_CONV(x_inverted_usd, -1, 2, -3);
  DEFINE_CONV(z_inverted, 1, 2, -3);
  DEFINE_CONV(xy_swap, 2, 1, 3);
  DEFINE_CONV(xy_rotated_left, -2, 1, 3);
@@ -236,6 +237,7 @@ static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
  	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("HPB440G3", "HP ProBook 440 G3", x_inverted_usd),
  	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),
--

2.5.0

#3 lore raw
Quoted 7 lines · Éric Piel
Quoted 6 lines · Darren Hart
Quoted 3 lines · Martin Vajnar

HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).

Eric, this looks good to me. Any concerns?

Quoted 8 lines

Hi Darren, Martin,

Indeed it looks fine :-)

Here is my:

Darren, could you pick it up in your tree?

Will do, queued to fixes for 4.6.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center