Dmitry Torokhov
e8a0581914
HID: multitouch: make mt_set_mode() less cryptic
...
mt_set_mode() accepts 2 boolean switches indicating whether the device
(if it follows Windows Precision Touchpad specification) should report
hardware buttons and/or surface contacts. For a casual reader it is
completely not clear, as they look at the call site, which exact mode
is being requested.
Define report_mode enum and change mt_set_mode() to accept is as
an argument instead. This allows to write:
mt_set_modes(hdev, HID_LATENCY_NORMAL, TOUCHPAD_REPORT_ALL);
or
mt_set_modes(hdev, HID_LATENCY_HIGH, TOUCHPAD_REPORT_BUTTONS);
which makes intent much more clear.
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/Zx_hBvg5Qa3KU3ta@google.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2024-11-18 21:49:47 +01:00
..
2024-10-09 17:18:57 +02:00
2024-09-27 20:15:21 +02:00
2024-10-24 16:31:58 -07:00
2024-10-04 10:33:11 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2022-12-20 15:30:35 +01:00
2024-06-06 10:52:48 +02:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2020-03-13 17:33:11 +01:00
2024-09-19 09:42:21 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:30:43 +02:00
2024-11-06 07:49:54 -10:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-13 15:39:37 +02:00
2024-08-27 16:29:55 +02:00
2024-06-07 11:08:07 +02:00
2024-09-05 16:20:56 +02:00
2022-11-21 22:17:10 +01:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2022-11-11 11:09:36 +01:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-06-06 10:52:48 +02:00
2021-05-27 15:40:34 +02:00
2024-06-06 10:52:48 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2023-07-09 12:47:37 +02:00
2024-10-18 12:33:47 +02:00
2022-12-20 15:30:35 +01:00
2024-08-06 08:42:53 +02:00
2024-08-27 16:29:55 +02:00
2024-07-12 18:28:03 +02:00
2024-09-05 16:20:56 +02:00
2024-10-02 17:23:23 -04:00
2024-07-10 09:11:27 +02:00
2022-04-21 10:28:49 +02:00
2024-10-18 12:36:11 +02:00
2024-10-02 17:23:23 -04:00
2024-02-13 11:43:55 +01:00
2022-11-14 23:56:52 +01:00
2024-06-06 10:52:09 +02:00
2024-09-06 10:06:02 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 16:20:56 +02:00
2023-11-21 09:27:18 +01:00
2024-07-12 18:30:11 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-11-18 21:49:47 +01:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-05-23 14:17:22 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 10:55:15 +02:00
2020-09-03 16:18:55 +02:00
2024-05-22 10:45:12 -07:00
2024-05-22 10:45:12 -07:00
2024-05-03 10:45:34 +01:00
2024-06-06 10:52:48 +02:00
2024-10-08 08:45:17 +02:00
2024-10-02 17:23:23 -04:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 16:20:57 +02:00
2023-12-04 16:21:05 +01:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2023-10-25 18:33:42 +02:00
2023-08-14 11:23:35 +02:00
2024-04-03 13:42:04 +02:00
2024-04-03 13:42:04 +02:00
2021-09-25 08:20:48 -07:00
2024-04-03 13:42:04 +02:00
2023-08-14 11:23:35 +02:00
2024-04-03 13:42:04 +02:00
2021-12-02 15:36:18 +01:00
2024-04-03 13:42:04 +02:00
2023-08-14 11:23:35 +02:00
2023-08-14 11:23:35 +02:00
2023-08-14 11:23:35 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-03 14:00:05 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-10-02 17:23:23 -04:00
2024-06-06 10:52:48 +02:00
2024-07-16 12:19:28 +02:00
2024-09-05 16:20:57 +02:00
2024-08-27 16:29:55 +02:00
2022-08-25 11:38:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2022-11-25 17:39:19 +08:00
2023-10-25 16:25:47 +02:00
2024-09-05 16:20:57 +02:00
2023-10-25 16:25:47 +02:00
2024-10-02 17:23:23 -04:00
2024-09-05 16:20:57 +02:00
2024-06-19 16:33:10 +02:00
2024-10-02 17:23:23 -04:00
2024-09-05 16:20:57 +02:00
2020-07-20 12:24:41 +02:00
2024-09-05 16:20:57 +02:00
2024-06-06 10:52:48 +02:00
2022-08-25 11:37:21 +02:00
2022-08-25 11:37:21 +02:00
2024-09-05 16:20:57 +02:00
2024-09-05 16:20:57 +02:00
2022-12-25 13:38:09 -08:00
2023-08-14 11:14:42 +02:00
2022-11-04 09:57:16 +01:00
2022-11-04 09:57:16 +01:00
2024-08-27 18:25:53 +02:00
2024-09-05 16:20:57 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-08-29 10:39:37 +02:00
2024-08-19 21:14:39 +02:00
2024-08-19 21:14:39 +02:00
2024-09-27 08:18:43 -07:00
2024-02-06 16:12:07 +01:00
2024-10-11 11:12:19 +02:00
2024-09-10 23:47:03 +02:00
2024-10-02 17:23:23 -04:00