From patchwork Mon Dec 16 15:23:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 3355041 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0AF20C0D4A for ; Mon, 16 Dec 2013 15:23:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EBE3C201CE for ; Mon, 16 Dec 2013 15:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE8EF200DF for ; Mon, 16 Dec 2013 15:23:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754494Ab3LPPXo (ORCPT ); Mon, 16 Dec 2013 10:23:44 -0500 Received: from mail-ee0-f49.google.com ([74.125.83.49]:62433 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754230Ab3LPPXn (ORCPT ); Mon, 16 Dec 2013 10:23:43 -0500 Received: by mail-ee0-f49.google.com with SMTP id c41so2286774eek.22 for ; Mon, 16 Dec 2013 07:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8vKikwa+xFgtORcgxJNGBaujwKQtLWHjwWCB9tJeC7o=; b=Nq1Q24RyUP9CZl51Cn+sZmE7VV6HUqgNWhJFN4EE571APihzCsezzxyiIelGcSCfLI dw8ymV7gZFCzxtnNktTKCKdSwQL/h5VKx101BkZn8AgKPSXeUAEyed7F3SlOsU8DOhFC AOxWb7jj4n8lfJl7bh21lbtCH/YDECz/yvbpE6sQevdAX6R0EJZd0b19talrjPKQE1Fg LXtLhtCY/m9iwfuMsIj/b9eutVFXWv2MtYIZtA3TMS60M1ji6vGx3t7JMtpNCOVsDbuJ XszbpL5G/sNLelQCKb9YqeUhHfcNitneH4uCO8rLMsAG4RiVGGFb9MDrsHgsBChaR9ys uTjA== X-Received: by 10.14.69.200 with SMTP id n48mr17522828eed.54.1387207422694; Mon, 16 Dec 2013 07:23:42 -0800 (PST) Received: from localhost.localdomain (stgt-4d02d241.pool.mediaWays.net. [77.2.210.65]) by mx.google.com with ESMTPSA id m1sm43404595eeg.0.2013.12.16.07.23.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Dec 2013 07:23:41 -0800 (PST) From: David Herrmann To: linux-input@vger.kernel.org Cc: Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , David Herrmann Subject: [PATCH] Input: add short note about ABS_MISC+ axes Date: Mon, 16 Dec 2013 16:23:06 +0100 Message-Id: <1387207386-4601-1-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.5.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.3 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 We must not reassign those axes or we will break backwards-compat. Add a small note for that so we don't accidentally some day reuse these. Signed-off-by: David Herrmann --- include/uapi/linux/input.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index a372627..da1125e 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -816,6 +816,10 @@ struct input_keymap_entry { #define ABS_MISC 0x28 +/* ABS_MISC+x is used by HID to assign to unknown axes. Note that they used to + * flow over into the MT definitions. For backwards-compatibility, we must + * not reassign [0x29-0x2e] */ + #define ABS_MT_SLOT 0x2f /* MT slot being modified */ #define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */ #define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */