From patchwork Fri Jun 8 00:14:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 10453681 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 C65CC60467 for ; Fri, 8 Jun 2018 00:15:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A78072968B for ; Fri, 8 Jun 2018 00:15:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 980E1296A7; Fri, 8 Jun 2018 00:15:01 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 340EA2968B for ; Fri, 8 Jun 2018 00:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383AbeFHAPA (ORCPT ); Thu, 7 Jun 2018 20:15:00 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39561 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbeFHAO7 (ORCPT ); Thu, 7 Jun 2018 20:14:59 -0400 Received: by mail-pg0-f66.google.com with SMTP id w12-v6so5522501pgc.6 for ; Thu, 07 Jun 2018 17:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=TYKaJkpTCYGsbfpwKeHID7wfzbW4tYdKoFQ/IvO472U=; b=NqD3vaqQk5rcSi8IaWQI6WL0ld/TeZO4FCpAXF3BpuhVpgd5+3GZ6TrMLwoJb2bjbU OKZv/x7S2fK0E2TrNMkxjmvCfJDHhU40IwGEDimg4cJcwzeAUZKXJK3FlFCOwp2PBLsz JGNmDrzcD4Nxh4atyjW8yp4XbaEi28JKpZL4o= 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; bh=TYKaJkpTCYGsbfpwKeHID7wfzbW4tYdKoFQ/IvO472U=; b=b7Mexxh8Nkf6JlGXmCqPj9F7fQaTo2xVNqNALXDG4JJpf/+VXDL9jogYfyJyV9B77g ihVSfNQhjTDCoyQbT+DmuQAF9JzOxOnTv3/kITtTwLQ5AKrmqMjfnmOXqHZ3wB0m/AgA dijq3SZVAlthL+KznSYf/GNV6FghyDZs6mZeAYeGdwISW/y3KhBtcgL/+Nr0pkLkUOa+ m4EH37Uk01ZoKtnQE8q6R4GzlCD8a38o6ZZFWPEcuKe3D/l4IjBmo9kfJYELUgMhVGPO JCLDyG/fuZDceXknGzR2H7Kszz5wcZf31xYi2mzKuNsMPUtfl3cqOvrs6p0bD2UhT3X4 V+OA== X-Gm-Message-State: APt69E2q3/VTxm6wZuMOLDpRLgoASmu2Fp3X9mO1oIufThrru4A0IDaU 7tjAJSMrWXsDsnbmnjH4Cabo+A== X-Google-Smtp-Source: ADUXVKKDdGyfLZxIhzfGfgtKjtQ88lV6gHYUTUfbvnBTMsBVdnUeTGHobMHqRImokyXkA9FiVTCbzA== X-Received: by 2002:a62:121a:: with SMTP id a26-v6mr3712477pfj.104.1528416898545; Thu, 07 Jun 2018 17:14:58 -0700 (PDT) Received: from drinkcat.tpe.corp.google.com ([2401:fa00:1:b:9ba:cd16:d555:bacf]) by smtp.gmail.com with ESMTPSA id n76-v6sm7493419pfg.98.2018.06.07.17.14.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 17:14:57 -0700 (PDT) From: Nicolas Boichat To: Jiri Kosina Cc: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: google: Add support for whiskers Date: Fri, 8 Jun 2018 08:14:50 +0800 Message-Id: <20180608001450.76836-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a-goog 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 Another device in the hammer class, with USB id 0x5030. Signed-off-by: Nicolas Boichat Acked-by: Benjamin Tissoires --- drivers/hid/hid-google-hammer.c | 2 ++ drivers/hid/hid-ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-google-hammer.c b/drivers/hid/hid-google-hammer.c index 7b8e17b03cb86..6bf4da7ad63a5 100644 --- a/drivers/hid/hid-google-hammer.c +++ b/drivers/hid/hid-google-hammer.c @@ -124,6 +124,8 @@ static const struct hid_device_id hammer_devices[] = { USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_STAFF) }, { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_WAND) }, + { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, + USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_WHISKERS) }, { } }; MODULE_DEVICE_TABLE(hid, hammer_devices); diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index a85634fe033f0..c7981ddd87763 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -452,6 +452,7 @@ #define USB_DEVICE_ID_GOOGLE_TOUCH_ROSE 0x5028 #define USB_DEVICE_ID_GOOGLE_STAFF 0x502b #define USB_DEVICE_ID_GOOGLE_WAND 0x502d +#define USB_DEVICE_ID_GOOGLE_WHISKERS 0x5030 #define USB_VENDOR_ID_GOTOP 0x08f2 #define USB_DEVICE_ID_SUPER_Q2 0x007f