From patchwork Fri Jan 23 10:24:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 5692421 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DF7CEC058E for ; Fri, 23 Jan 2015 10:25:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2AD0E202E5 for ; Fri, 23 Jan 2015 10:25:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D01CD2026F for ; Fri, 23 Jan 2015 10:25:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754862AbbAWKY5 (ORCPT ); Fri, 23 Jan 2015 05:24:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59088 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbbAWKYy (ORCPT ); Fri, 23 Jan 2015 05:24:54 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0NAOqH9021801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Jan 2015 05:24:52 -0500 Received: from shalem.localdomain.com (vpn1-6-187.ams2.redhat.com [10.36.6.187]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0NAOpVi025922; Fri, 23 Jan 2015 05:24:51 -0500 From: Hans de Goede To: Dmitry Torokhov Cc: Peter Hutterer , linux-input@vger.kernel.org, Hans de Goede Subject: [PATCH] input.h: Add BTN_SIDE2 button code Date: Fri, 23 Jan 2015 11:24:50 +0100 Message-Id: <1422008690-920-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Some mice report buttons with a MSC_SCAN of 589833 this maps to a button code of 0x118, add a BTN_SIDE2 define for this to input.h BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1184352 Signed-off-by: Hans de Goede --- include/uapi/linux/input.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index a1d7e93..27b0f6a 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -498,6 +498,7 @@ struct input_keymap_entry { #define BTN_FORWARD 0x115 #define BTN_BACK 0x116 #define BTN_TASK 0x117 +#define BTN_SIDE2 0x118 #define BTN_JOYSTICK 0x120 #define BTN_TRIGGER 0x120