mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nate Yocom <nate@yocom.org>
To: dmitry.torokhov@gmail.com
Cc: nate@yocom.org, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org, hadess@hadess.net,
	benjamin.tissoires@redhat.com
Subject: [PATCH v6 3/5] Input: joystick: xpad: Add ABS_PROFILE to uapi
Date: Thu,  8 Sep 2022 10:39:28 -0700	[thread overview]
Message-ID: <20220908173930.28940-4-nate@yocom.org> (raw)
In-Reply-To: <20220908173930.28940-1-nate@yocom.org>

Add an ABS_PROFILE axis for input devices which need it, e.g. X-Box
Adaptive Controller and X-Box Elite 2.

Signed-off-by: Nate Yocom <nate@yocom.org>
---
 drivers/hid/hid-debug.c                | 3 ++-
 include/uapi/linux/input-event-codes.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index 81e7e404a5fc..2ca6ab600bc9 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -1014,7 +1014,8 @@ static const char *absolutes[ABS_CNT] = {
 	[ABS_HAT3Y] = "Hat 3Y",		[ABS_PRESSURE] = "Pressure",
 	[ABS_DISTANCE] = "Distance",	[ABS_TILT_X] = "XTilt",
 	[ABS_TILT_Y] = "YTilt",		[ABS_TOOL_WIDTH] = "ToolWidth",
-	[ABS_VOLUME] = "Volume",	[ABS_MISC] = "Misc",
+	[ABS_VOLUME] = "Volume",	[ABS_PROFILE] = "Profile",
+	[ABS_MISC] = "Misc",
 	[ABS_MT_TOUCH_MAJOR] = "MTMajor",
 	[ABS_MT_TOUCH_MINOR] = "MTMinor",
 	[ABS_MT_WIDTH_MAJOR] = "MTMajorW",
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index dff8e7f17074..7ad931a32970 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -862,6 +862,7 @@
 #define ABS_TOOL_WIDTH		0x1c
 
 #define ABS_VOLUME		0x20
+#define ABS_PROFILE		0x21
 
 #define ABS_MISC		0x28
 
-- 
2.30.2


  parent reply	other threads:[~2022-09-08 17:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 17:39 [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-08 17:39 ` [PATCH v6 1/5] Input: joystick: xpad: Add X-Box Adaptive support Nate Yocom
2022-09-28  7:21   ` Mattijs Korpershoek
2022-09-08 17:39 ` [PATCH v6 2/5] Input: joystick: xpad: Add X-Box Adaptive XBox button Nate Yocom
2022-09-28  7:21   ` Mattijs Korpershoek
2022-09-08 17:39 ` Nate Yocom [this message]
2022-09-08 17:39 ` [PATCH v6 4/5] Input: joystick: xpad: Add ABS_PROFILE to Docs Nate Yocom
2022-09-08 17:39 ` [PATCH v6 5/5] Input: joystick: xpad: Add X-Box Adaptive Profile button Nate Yocom
2022-09-13 21:46 ` [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-28  2:36   ` Nate Yocom
2022-09-29  1:34 ` Dmitry Torokhov

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=20220908173930.28940-4-nate@yocom.org \
    --to=nate@yocom.org \
    --cc=benjamin.tissoires@redhat.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hadess@hadess.net \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®