* [PATCH] hp_accel: Add support for HP ProBook 440 G3
@ 2016-04-02 18:11 Martin Vajnar
2016-04-10 3:10 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Martin Vajnar @ 2016-04-02 18:11 UTC (permalink / raw)
To: Eric Piel, Darren Hart, platform-driver-x86; +Cc: Martin Vajnar
HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).
Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
---
drivers/platform/x86/hp_accel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index 10ce6cb..263002b 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -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
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] hp_accel: Add support for HP ProBook 440 G3
2016-04-02 18:11 [PATCH] hp_accel: Add support for HP ProBook 440 G3 Martin Vajnar
@ 2016-04-10 3:10 ` Darren Hart
2016-04-11 21:06 ` Éric Piel
0 siblings, 1 reply; 4+ messages in thread
From: Darren Hart @ 2016-04-10 3:10 UTC (permalink / raw)
To: Martin Vajnar; +Cc: Eric Piel, platform-driver-x86
On Sat, Apr 02, 2016 at 08:11:13PM +0200, Martin Vajnar wrote:
> HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).
>
> Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
Eric, this looks good to me. Any concerns?
> ---
> drivers/platform/x86/hp_accel.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
> index 10ce6cb..263002b 100644
> --- a/drivers/platform/x86/hp_accel.c
> +++ b/drivers/platform/x86/hp_accel.c
> @@ -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
>
>
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] hp_accel: Add support for HP ProBook 440 G3
2016-04-10 3:10 ` Darren Hart
@ 2016-04-11 21:06 ` Éric Piel
2016-04-15 3:31 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Éric Piel @ 2016-04-11 21:06 UTC (permalink / raw)
To: Darren Hart, Martin Vajnar; +Cc: platform-driver-x86
On 10-04-16 05:10, Darren Hart wrote:
> On Sat, Apr 02, 2016 at 08:11:13PM +0200, Martin Vajnar wrote:
>> HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).
>>
>> Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
>
> Eric, this looks good to me. Any concerns?
Hi Darren, Martin,
Indeed it looks fine :-)
Here is my:
Acked-by: Éric Piel <eric.piel@tremplin-utc.net>
Darren, could you pick it up in your tree?
Thanks,
Éric
>
>> ---
>> drivers/platform/x86/hp_accel.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
>> index 10ce6cb..263002b 100644
>> --- a/drivers/platform/x86/hp_accel.c
>> +++ b/drivers/platform/x86/hp_accel.c
>> @@ -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
>>
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] hp_accel: Add support for HP ProBook 440 G3
2016-04-11 21:06 ` Éric Piel
@ 2016-04-15 3:31 ` Darren Hart
0 siblings, 0 replies; 4+ messages in thread
From: Darren Hart @ 2016-04-15 3:31 UTC (permalink / raw)
To: Éric Piel; +Cc: Martin Vajnar, platform-driver-x86
On Mon, Apr 11, 2016 at 11:06:53PM +0200, Éric Piel wrote:
> On 10-04-16 05:10, Darren Hart wrote:
> >On Sat, Apr 02, 2016 at 08:11:13PM +0200, Martin Vajnar wrote:
> >>HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd).
> >>
> >>Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
> >
> >Eric, this looks good to me. Any concerns?
> Hi Darren, Martin,
>
> Indeed it looks fine :-)
>
> Here is my:
> Acked-by: Éric Piel <eric.piel@tremplin-utc.net>
>
> Darren, could you pick it up in your tree?
Will do, queued to fixes for 4.6.
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-15 3:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-02 18:11 [PATCH] hp_accel: Add support for HP ProBook 440 G3 Martin Vajnar
2016-04-10 3:10 ` Darren Hart
2016-04-11 21:06 ` Éric Piel
2016-04-15 3:31 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox