* [PATCH] hp_accel: Add support for HP ZBook 17
@ 2016-12-21 9:55 Ladislav Michl
2016-12-27 11:57 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2016-12-21 9:55 UTC (permalink / raw)
To: Eric Piel, Darren Hart, Takashi Iwai; +Cc: platform-driver-x86, linux-kernel
HP ZBook 17 laptop needs a non-standard mapping (xy_swap_yz_inverted).
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
Test done on patched driver; reading /sys/devices/platform/lis3lv02d/position
- laptop is horizontal: (-36,0,1188)
- the left side is elevated: (522,18,1062)
- the front side (where the touchpad is) is elevated: (0,-612,990)
- the laptop is put upside-down: (-36,18,-1188)
drivers/platform/x86/hp_accel.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index 09356684c32f..493d8910a74e 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -251,6 +251,7 @@ static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
AXIS_DMI_MATCH("HPB64xx", "HP EliteBook 84", xy_swap),
AXIS_DMI_MATCH("HPB65xx", "HP ProBook 65", x_inverted),
AXIS_DMI_MATCH("HPZBook15", "HP ZBook 15", x_inverted),
+ AXIS_DMI_MATCH("HPZBook17", "HP ZBook 17", xy_swap_yz_inverted),
{ NULL, }
/* Laptop models without axis info (yet):
* "NC6910" "HP Compaq 6910"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hp_accel: Add support for HP ZBook 17
2016-12-21 9:55 [PATCH] hp_accel: Add support for HP ZBook 17 Ladislav Michl
@ 2016-12-27 11:57 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2016-12-27 11:57 UTC (permalink / raw)
To: Ladislav Michl
Cc: Eric Piel, Darren Hart, Takashi Iwai, platform-driver-x86, linux-kernel
On Wed, Dec 21, 2016 at 11:55 AM, Ladislav Michl <ladis@linux-mips.org> wrote:
> HP ZBook 17 laptop needs a non-standard mapping (xy_swap_yz_inverted).
>
Pushed to testing with fixed Subject (should be "platform/x86: ...").
Thanks.
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> ---
> Test done on patched driver; reading /sys/devices/platform/lis3lv02d/position
> - laptop is horizontal: (-36,0,1188)
> - the left side is elevated: (522,18,1062)
> - the front side (where the touchpad is) is elevated: (0,-612,990)
> - the laptop is put upside-down: (-36,18,-1188)
>
> drivers/platform/x86/hp_accel.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
> index 09356684c32f..493d8910a74e 100644
> --- a/drivers/platform/x86/hp_accel.c
> +++ b/drivers/platform/x86/hp_accel.c
> @@ -251,6 +251,7 @@ static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
> AXIS_DMI_MATCH("HPB64xx", "HP EliteBook 84", xy_swap),
> AXIS_DMI_MATCH("HPB65xx", "HP ProBook 65", x_inverted),
> AXIS_DMI_MATCH("HPZBook15", "HP ZBook 15", x_inverted),
> + AXIS_DMI_MATCH("HPZBook17", "HP ZBook 17", xy_swap_yz_inverted),
> { NULL, }
> /* Laptop models without axis info (yet):
> * "NC6910" "HP Compaq 6910"
> --
> To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-27 11:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21 9:55 [PATCH] hp_accel: Add support for HP ZBook 17 Ladislav Michl
2016-12-27 11:57 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).