From patchwork Mon Jun 5 20:58:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 9767567 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 CD091602BF for ; Mon, 5 Jun 2017 20:59:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFD592845C for ; Mon, 5 Jun 2017 20:59:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B48972845E; Mon, 5 Jun 2017 20:59:07 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 5D3172845C for ; Mon, 5 Jun 2017 20:59:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751277AbdFEU7G (ORCPT ); Mon, 5 Jun 2017 16:59:06 -0400 Received: from mail-vk0-f50.google.com ([209.85.213.50]:36040 "EHLO mail-vk0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbdFEU7G (ORCPT ); Mon, 5 Jun 2017 16:59:06 -0400 Received: by mail-vk0-f50.google.com with SMTP id p85so72692266vkd.3 for ; Mon, 05 Jun 2017 13:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OwUVcIawTy+gCtp6IrU4wHbU3kZ5t65aKnZyHSvJpv8=; b=JAOw/yKVwl/novXXOjJAslFzr+anvXkIPibqXOE33pl9dS91tvFreMDVpqTsv62h2c qD5L2muTZM7h3bD/xa8ih5BEjO11DBDpIkKz9NfwmR/G4y+PnnCZAsXrxgceFvQQp7O4 YGTBU5CXtKS+Qkzn3hPaI1XqqBak2NuMl7pVb9PB8PcCEaZ0UN5i6mtDmntfAg3JHtqF pg3B9k1VbLnzJQgkPJNEQMVOGEHn0PSQvYD/yY6iSJ5dqZBvC+60m7tmdokjTg4bYdSE QU/1i2M/FVyAZtDwFgn7l9MHn6sW3t/eyYqjVQAdKgPXbR+cORGxtQPPEkbjdmoDuz04 UncQ== 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=OwUVcIawTy+gCtp6IrU4wHbU3kZ5t65aKnZyHSvJpv8=; b=NoOHiLxAip/wIkyOt5Da8f6M4VdmpuFdKqkkmnlKUljccAjUzmnQNGy0JPngdXssbQ 0MYj+0b5k2DhL86dn9/j3e5uwiSs+iDWAhdhOt13XkuUEfVjBTbaAtr3loUOsWTutdw3 90N999LH5sldxE4AgytlE8cWKNn8JBbDYT9Lel4/uAS1k3jIyYlGvgENM9qkHbNHFjRR Zgfb86exkiYR9W7BHHSNrnfZhCWID9XgO/PeIsx1LwtdM5aVLoNmjHQgZK+Bt2m91fWH ZV37LFWhZhkJ2WbZTJov+Q+WXdml5a+2EPRV+lr+vlp1bTmId82OKkamUUWmdJAAq/35 sxmQ== X-Gm-Message-State: AODbwcBeJ5Qmgwyn8mnaL6rpn6YSWgIwQBzhUdiqbugcGSZBvbyC6K+i tIwMmzP9BxDzMWJy X-Received: by 10.31.165.79 with SMTP id o76mr11456694vke.91.1496696345004; Mon, 05 Jun 2017 13:59:05 -0700 (PDT) Received: from localhost.localdomain ([186.77.198.42]) by smtp.gmail.com with ESMTPSA id j22sm8296802uaa.14.2017.06.05.13.59.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 13:59:04 -0700 (PDT) From: Daniel Drake To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux@endlessm.com Subject: [PATCH 2/2] HID: asus: Add support for Zen AiO MD-5110 keyboard Date: Mon, 5 Jun 2017 14:58:57 -0600 Message-Id: <20170605205857.17789-2-drake@endlessm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170605205857.17789-1-drake@endlessm.com> References: <20170605205857.17789-1-drake@endlessm.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 Add support for media keys on the MD-5110 wireless keyboard that comes with the Asus V221ID and ZN241IC All In One computers. The keys to support here are WLAN, BRIGHTNESSDOWN and BRIGHTNESSUP. The USB Vendor ID suggests that it is a TURBOX device, but the physical branding only mentions ASUS MD-5110. Signed-off-by: Daniel Drake Acked-by: Benjamin Tissoires --- drivers/hid/hid-asus.c | 1 + drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index 16a88da545b1..a4a3c38bc145 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -600,6 +600,7 @@ static const struct hid_device_id asus_devices[] = { USB_DEVICE_ID_ASUSTEK_T100_KEYBOARD), QUIRK_T100_KEYBOARD | QUIRK_NO_CONSUMER_USAGES }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_ASUS_AK1D) }, + { HID_USB_DEVICE(USB_VENDOR_ID_TURBOX, USB_DEVICE_ID_ASUS_MD_5110) }, { HID_USB_DEVICE(USB_VENDOR_ID_JESS, USB_DEVICE_ID_ASUS_MD_5112) }, { } }; diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 391dcc94d2c2..006cece0f6aa 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2090,6 +2090,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) }, { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED2, USB_DEVICE_ID_TOPSEED2_RF_COMBO) }, { HID_USB_DEVICE(USB_VENDOR_ID_TWINHAN, USB_DEVICE_ID_TWINHAN_IR_REMOTE) }, + { HID_USB_DEVICE(USB_VENDOR_ID_TURBOX, USB_DEVICE_ID_ASUS_MD_5110) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_PF1209) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_WP5540U) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 10ad3899c079..20371ab0cac8 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1022,6 +1022,7 @@ #define USB_VENDOR_ID_TURBOX 0x062a #define USB_DEVICE_ID_TURBOX_KEYBOARD 0x0201 +#define USB_DEVICE_ID_ASUS_MD_5110 0x5110 #define USB_DEVICE_ID_TURBOX_TOUCHSCREEN_MOSART 0x7100 #define USB_VENDOR_ID_TWINHAN 0x6253