Dmitry Torokhov
bf6247a70f
Input: make input_report_slot_state() return boolean
Let's make input_report_slot_state() return boolean representing whether
the contact is active or not. This will allow writing code like:
if (input_mt_report_slot_state(input, obj->mt_tool,
obj->type != RMI_2D_OBJECT_NONE) {
input_event(sensor->input, EV_ABS, ABS_MT_POSITION_X, obj->x);
input_event(sensor->input, EV_ABS, ABS_MT_POSITION_Y, obj->y);
...
}
instead of:
input_mt_report_slot_state(input, obj->mt_tool,
obj->type != RMI_2D_OBJECT_NONE);
if (obj->type != RMI_2D_OBJECT_NONE) {
input_event(sensor->input, EV_ABS, ABS_MT_POSITION_X, obj->x);
input_event(sensor->input, EV_ABS, ABS_MT_POSITION_Y, obj->y);
...
}
Reviewed-by: Henrik Rydberg <rydberg@bitmath.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redaht.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2018-06-11 10:21:06 -07:00
..
2018-05-10 10:15:05 +02:00
2018-04-13 15:51:06 -07:00
2018-06-11 10:21:06 -07:00
2018-04-04 15:19:26 -07:00
2018-04-13 16:20:36 -07:00
2018-04-26 12:43:19 -07:00
2018-05-15 14:40:34 +02:00
2018-04-13 16:20:36 -07:00
2018-04-07 12:08:19 -07:00
2018-05-04 07:54:54 +02:00
2018-04-10 12:09:27 -07:00
2018-04-12 12:55:50 -07:00
2018-04-27 10:17:10 +03:00
2018-04-20 17:18:35 -07:00
2018-04-20 17:18:35 -07:00
2018-04-11 10:28:37 -07:00
2018-04-02 20:52:27 -07:00
2018-04-25 07:58:18 -06:00
2018-04-25 21:13:40 -07:00
2018-04-24 00:49:45 +02:00
2018-05-04 12:45:55 -04:00
2018-04-03 18:00:13 -07:00
2018-04-16 09:25:07 -07:00
2018-04-15 16:12:35 -07:00
2018-04-20 17:18:35 -07:00
2018-04-11 10:28:35 -07:00
2018-04-11 10:28:38 -07:00
2018-04-19 12:29:41 -03:00
2018-04-10 08:40:45 +02:00
2018-04-06 09:29:34 +02:00
2018-04-03 05:41:19 -07:00
2018-04-04 00:40:19 -04:00
2018-04-06 11:50:19 -07:00
2018-04-19 09:48:32 +02:00
2018-04-03 15:04:23 -04:00
2018-04-05 10:23:24 -07:00
2018-04-05 14:21:13 -07:00
2018-05-14 08:56:29 +02:00
2018-04-24 13:38:42 -04:00
2018-04-05 21:36:26 -07:00
2018-04-12 12:28:32 -07:00
2018-04-06 14:05:14 +01:00
2018-04-06 14:05:14 +01:00
2018-04-25 21:23:38 -07:00
2018-04-02 20:15:02 +02:00
2018-04-26 09:02:01 -06:00
2018-04-09 09:26:12 +02:00
2018-04-11 10:28:31 -07:00
2018-04-26 14:53:32 +02:00
2018-04-09 11:42:31 -07:00
2018-04-05 14:27:02 -07:00
2018-04-11 10:28:39 -07:00
2018-04-17 13:59:28 -04:00
2018-04-06 09:28:50 +02:00
2018-04-05 21:36:24 -07:00
2018-04-11 10:28:35 -07:00
2018-04-13 17:10:28 -07:00
2018-04-11 10:28:38 -07:00
2018-05-03 07:38:05 +02:00
2018-05-11 11:21:10 +02:00
2018-04-07 07:53:23 -07:00
2018-04-05 21:36:27 -07:00
2018-04-17 13:42:48 +02:00
2018-04-12 09:41:19 -07:00
2018-04-07 16:53:59 -07:00
2018-04-07 12:08:19 -07:00
2018-04-11 10:28:31 -07:00
2018-04-11 10:28:32 -07:00
2018-04-05 21:36:25 -07:00
2018-04-12 21:46:10 -04:00
2018-04-11 10:28:32 -07:00
2018-04-05 21:36:27 -07:00
2018-05-18 17:17:12 -07:00
2018-04-05 21:36:27 -07:00
2018-04-11 10:28:32 -07:00
2018-04-13 15:37:59 +02:00
2018-04-10 16:06:22 -04:00
2018-04-10 16:06:22 -04:00
2018-04-05 21:36:25 -07:00
2018-05-11 17:28:45 -07:00
2018-04-05 21:36:25 -07:00
2018-04-05 21:36:25 -07:00
2018-04-11 10:28:32 -07:00
2018-04-11 10:28:39 -07:00
2018-04-06 18:31:06 -07:00
2018-04-03 12:38:05 +01:00
2018-04-03 12:23:38 +01:00
2018-04-06 18:31:06 -07:00
2018-05-16 11:45:16 +02:00
2018-04-02 20:15:46 +02:00
2018-04-11 10:28:39 -07:00
2018-05-11 17:28:45 -07:00
2018-05-11 17:28:45 -07:00
2018-04-25 16:43:55 -07:00
2018-06-05 10:33:35 -07:00
2018-05-16 11:45:16 +02:00
2018-04-05 14:27:02 -07:00
2018-05-04 07:54:54 +02:00
2018-04-07 16:53:59 -07:00
2018-04-11 10:28:36 -07:00
2018-04-23 10:06:59 +02:00
2018-04-13 17:10:28 -07:00
2018-04-16 02:06:47 -04:00
2018-04-05 21:36:24 -07:00
2018-04-05 21:36:27 -07:00
2018-04-05 21:36:24 -07:00
2018-04-03 14:04:18 -07:00
2018-04-28 15:01:14 -07:00
2018-04-05 21:36:25 -07:00
2018-04-09 16:47:27 +02:00
2018-04-16 18:53:13 -04:00
2018-04-02 21:49:01 +08:00
2018-04-20 17:18:35 -07:00
2018-04-18 10:07:13 -07:00
2018-04-09 11:54:56 +02:00
2018-04-26 14:53:32 +02:00
2018-04-17 17:18:05 +02:00
2018-04-26 14:53:32 +02:00
2018-04-17 17:18:04 +02:00
2018-04-10 11:27:30 -07:00
2018-04-23 11:05:52 +02:00
2018-04-11 10:28:35 -07:00
2018-04-23 13:41:55 +02:00
2018-04-25 20:33:19 +03:00
2018-04-11 10:28:30 -07:00
2018-05-03 09:25:47 -06:00
2018-04-03 18:00:13 -07:00
2018-04-11 10:28:39 -07:00
2018-04-05 21:36:26 -07:00