From patchwork Sat Apr 2 18:11:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Vajnar X-Patchwork-Id: 8732441 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 388BB9F36E for ; Sat, 2 Apr 2016 18:11:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E2C420328 for ; Sat, 2 Apr 2016 18:11:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 852E22024D for ; Sat, 2 Apr 2016 18:11:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751960AbcDBSLq (ORCPT ); Sat, 2 Apr 2016 14:11:46 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33872 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbcDBSLp (ORCPT ); Sat, 2 Apr 2016 14:11:45 -0400 Received: by mail-lf0-f68.google.com with SMTP id f127so15725110lff.1 for ; Sat, 02 Apr 2016 11:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=E7k9wCD2O/HKm970ldJcaoExoeYtdPvHq7mY+6HUihY=; b=yyLyS3cRP/lml82nwN3+mZqsL/JZhwxZ3TCzjab0VRgXvINJZj9TnjNWn+/2ItMbdc DlbX9knLIpvZyA4retQoKuayMQQf5szVewKl0gZWEwIUmOO/BAjTuQRIJor6jZKu5xPO /yx1G5O6mOItvqWf+WGtCxzrKjBuyGWfYEguSU7jI6GPfPnntemZBdPK4TnVJwFoIAA/ QJ/BzWulRWaazMEc5Smz/fLrCEF8v49kJzROhwmdjRszBfsrmhdnKTctIzFQlJdgSrrn uMc/tc6/GOh2ilUeHbq8vTvUxrx3GGNaEIUjSCJrWa5wp8+A+yRJnEQix+h7badbohTk 9gxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E7k9wCD2O/HKm970ldJcaoExoeYtdPvHq7mY+6HUihY=; b=CUohbdMUHVBZ/OVRWha9/d+s0NTw5Gj/OW75sUFALqOHgXC20QfN7q7+3KXuFF7VDR yi6C4gxB7UXRy+e2CrSzZgtOUrPD6N+S/aX796rq/6lCXDeuuPLENwAlePaoUMOUOjfR 2Z+hCTnuO1EcBLHw+6ESuQUmsFkZn2POAssWcuu6QfKbst21bXfzrHACfm2+AAMsRhuU zfXz4INjW6iidw0tfBv9A0RXtTHsWn7+gZ4EHLhsLgaRtoz4TLvE0SG5nzBIz+vXv/Au 0KN2V5BGtpwCi9+YX18Y5HWdwkO4L4ojU8Hijy6MEtxOeqtPdvqpXAP1MoMN+J1t0f/Q dIjw== X-Gm-Message-State: AD7BkJJp5GPQkdyfJsKeG2YyvTJcBV0ARd/14YC3WVeiyD/F6gBncPhwX3D58wDbU5hqGQ== X-Received: by 10.194.94.138 with SMTP id dc10mr11954813wjb.37.1459620703256; Sat, 02 Apr 2016 11:11:43 -0700 (PDT) Received: from martin-HP-ProBook-440-G3.internet (1.153.broadband6.iol.cz. [88.101.153.1]) by smtp.gmail.com with ESMTPSA id 192sm4900549wmw.0.2016.04.02.11.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Apr 2016 11:11:42 -0700 (PDT) From: Martin Vajnar To: Eric Piel , Darren Hart , platform-driver-x86@vger.kernel.org Cc: Martin Vajnar Subject: [PATCH] hp_accel: Add support for HP ProBook 440 G3 Date: Sat, 2 Apr 2016 20:11:13 +0200 Message-Id: <1459620673-10633-1-git-send-email-martin.vajnar@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP HP ProBook 440 G3 laptop needs a non-standard mapping (x_inverted_usd). Signed-off-by: Martin Vajnar Acked-by: Éric Piel --- 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),