linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Herrmann <dh.herrmann@gmail.com>
To: linux-input@vger.kernel.org
Cc: Jiri Kosina <jkosina@suse.cz>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Benjamin Tissoires <benjamin.tissoires@gmail.com>,
	David Herrmann <dh.herrmann@gmail.com>
Subject: [PATCH] Input: add short note about ABS_MISC+<n> axes
Date: Mon, 16 Dec 2013 16:23:06 +0100	[thread overview]
Message-ID: <1387207386-4601-1-git-send-email-dh.herrmann@gmail.com> (raw)

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 <dh.herrmann@gmail.com>
---
 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) */
-- 
1.8.5.1


             reply	other threads:[~2013-12-16 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-16 15:23 David Herrmann [this message]
2014-01-23 14:39 ` [PATCH] Input: add short note about ABS_MISC+<n> axes David Herrmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387207386-4601-1-git-send-email-dh.herrmann@gmail.com \
    --to=dh.herrmann@gmail.com \
    --cc=benjamin.tissoires@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).