summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-03 22:57:26 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-14 10:12:45 -0700
commitdbb660ccc9f1506f87f92b51b013043b113b074a (patch)
tree1685da2a20a27782705d4a7e45fba1f397988559 /rust/kernel/alloc
parentcbb37908effbe2fb3e3ee0fe6ba1fd0f7f47b359 (diff)
Input: maplecontrol - only enable present axes
The driver was unconditionally enabling all possible analog axes and hats on the input device, even if the controller reported it did not have them in its function data. Move the input_set_abs_params() calls inside the capability check loop so that only actually present axes are enabled on the input device. Also, correct the D-pad (hat) axis limits. They were initialized with inverted limits (min=1, max=-1). Correct them to min=-1, max=1, which matches the values (-1, 0, 1) reported by the driver. Assisted-by: Antigravity:gemini-3.5-flash Link: https://patch.msgid.link/20260703-b4-maple-cleanup-v1-3-41e424964da5@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions