]> git.ipfire.org Git - thirdparty/linux.git/commit
Input: rmi4 - simplify size calculations in F12
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 May 2026 04:59:48 +0000 (21:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Jun 2026 05:39:29 +0000 (22:39 -0700)
commit7d8be1ecf44f032f3fb444088b43b933ead9b00d
tree0bc8eb739e6d972f14a3d513dc28c521ef84a53f
parent57d9212421e3a10fc336bed732e70b8521fea1e6
Input: rmi4 - simplify size calculations in F12

Use min_t() to simplify the clamping logic when calculating the
number of objects to process and the number of valid bytes in the
attention handler.

Assisted-by: Gemini:gemini-3.1-pro
Link: https://patch.msgid.link/20260505045952.1570713-18-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f12.c