From patchwork Fri Oct 6 01:17:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masaki Ota <012nexus@gmail.com> X-Patchwork-Id: 9988209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6196960216 for ; Fri, 6 Oct 2017 01:18:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5394D28CCF for ; Fri, 6 Oct 2017 01:18:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 486FA28D44; Fri, 6 Oct 2017 01:18:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C168E28CCF for ; Fri, 6 Oct 2017 01:18:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751527AbdJFBSH (ORCPT ); Thu, 5 Oct 2017 21:18:07 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32770 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751532AbdJFBRe (ORCPT ); Thu, 5 Oct 2017 21:17:34 -0400 Received: by mail-pg0-f65.google.com with SMTP id b11so7854424pgn.0; Thu, 05 Oct 2017 18:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kRt2ERPwRVoSbUWTpn1s/OVLCrL/Ed9ZkpHVhRDSvKw=; b=RxLQKv1J5DtugmowiXdav84vfelLBPOMoVeaWOE0YrnJvzGrdy1IlTTFDDm3Zo+tBh RSzX5toorK88YxGzwXB8lTKw49V+seBRPvpBp+c8xtYHeNf/J6QFgQmY4vBCPjVGGGr9 JGZ+etvafQji7oqnq0PGoKe7QkpmJOIX5E6aogVx0Ud+kKvvyEQth5iFQW54NL3QIL3l 0DiJ0+PeQ4oaTJD9/Y4ZkH6zV2OWUt9KybSaAnHImuXbtL95hguR2wEizAfXerMoGSUd wFBFcLHBcRldXO2NY2VXQ+6GDrC2efwaBFUAPbTglQVCjowoqOD0jRUc8qe6ntwclxI4 Lg5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kRt2ERPwRVoSbUWTpn1s/OVLCrL/Ed9ZkpHVhRDSvKw=; b=ReiZVfj9sNx4Qwlinfsl4bXXykbJHr8LRE/AzjSLKvQgvydzvsCarPdrsNdfOpFfAx z56PlxCs0RrG5Ohm9/TCPa5XB9uYSGplAAqEeO8qzaKBrxfGUZWBMzn2k5sH5WDPiH7U j6ggn+CqFkA4fzF93XrRnKoPQKwZ0ZQxJ403JeGmcmXH5QF93mAFZwIEsHz1QyvzW1cx T2iS0FlHPs9aJtXby93lxGbAa0H0yBRbe931m7q8+9v5HEQ9zbLhbPagiqonCwCAANQH RtZIRmG/vHIy+OMd8yPStI4YQ3O/rNP9zjt1vX089zZI9uM1xoLw3KMhm9NJbOYKCWhC QqIA== X-Gm-Message-State: AMCzsaU7Py0mMPEKTXWXVgOnzKp2pmYGuplR78rVVJMvbkgczIy+baDA YnsbDl035N13pWpS4/40dK4= X-Google-Smtp-Source: AOwi7QBo4u3sDO1ebuC2i0u7eIDHtsUGm7vihhuD8nF9XSoUuLx0VckwiKn81e5oXlA6tVGK25tCTQ== X-Received: by 10.98.88.7 with SMTP id m7mr493736pfb.169.1507252654039; Thu, 05 Oct 2017 18:17:34 -0700 (PDT) Received: from localhost (p2218-ipad303aobadori.miyagi.ocn.ne.jp. [123.216.73.218]) by smtp.gmail.com with ESMTPSA id l68sm328787pfb.126.2017.10.05.18.17.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 18:17:33 -0700 (PDT) From: Masaki Ota <012nexus@gmail.com> X-Google-Original-From: Masaki Ota To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, masaki.ota@jp.alps.com Subject: [PATCH 6/7] Add new U1 device ID Date: Fri, 6 Oct 2017 10:17:00 +0900 Message-Id: <20171006011701.3761-7-masaki.ota@jp.alps.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171006011701.3761-1-masaki.ota@jp.alps.com> References: <20171006011701.3761-1-masaki.ota@jp.alps.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Masaki Ota -Add new U1 device Product ID -This device is used on HP Elite book x360 series Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 3 +++ drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + 3 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index bd02c98fa53d..18ec1ef57b2c 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -767,6 +767,7 @@ static int alps_probe(struct hid_device *hdev, const struct hid_device_id *id) data->dev_type = T4; break; case HID_DEVICE_ID_ALPS_U1_DUAL: + case HID_DEVICE_ID_ALPS_U1: data->dev_type = U1; break; default: @@ -791,6 +792,8 @@ static const struct hid_device_id alps_id[] = { { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1_DUAL) }, { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, + USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1) }, + { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_T4_BTNLESS) }, { } }; diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 9c3cb2e467e9..779e26cb3ba9 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1775,6 +1775,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802) }, { HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705) }, { HID_I2C_DEVICE(USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1_DUAL) }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1) }, { HID_I2C_DEVICE(USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_T4_BTNLESS) }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICMOUSE) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 0b9726d321ee..2b50d12b993e 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -75,6 +75,7 @@ #define USB_VENDOR_ID_ALPS_JP 0x044E #define HID_DEVICE_ID_ALPS_U1_DUAL 0x120B +#define HID_DEVICE_ID_ALPS_U1 0x1215 #define HID_DEVICE_ID_ALPS_T4_BTNLESS 0x120C #define USB_VENDOR_ID_AMI 0x046b