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-03-31 01:33:09 +08: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-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
2017-11-02 11:10:55 +01:00
2018-05-04 07:54:54 +02:00
2018-04-12 12:55:50 -07:00
2018-04-27 10:17:10 +03:00
2016-09-05 12:41:46 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2012-10-08 13:50:20 +10:30
2013-12-02 11:24:18 +00:00
2016-07-08 17:01:14 +03:00
2017-11-02 11:10:55 +01:00
2012-03-16 10:38:24 -04:00
2018-04-20 17:18:35 -07:00
2018-04-20 17:18:35 -07:00
2011-03-11 14:25:50 +00:00
2018-04-11 10:28:37 -07:00
2017-12-17 12:36:01 -05:00
2018-04-25 07:58:18 -06:00
2018-04-25 21:13:40 -07:00
2017-11-02 11:10:55 +01:00
2018-03-16 10:56:13 +01:00
2018-04-24 00:49:45 +02:00
2018-05-04 12:45:55 -04:00
2018-03-13 11:40:24 -06:00
2017-11-15 18:21:04 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-16 09:25:07 -07:00
2014-11-20 10:43:16 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01: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
2017-11-02 11:10:55 +01:00
2008-04-30 08:29:54 -07:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:38 -07:00
2018-04-19 12:29:41 -03:00
2018-03-16 10:55:47 +01:00
2014-06-25 16:04:00 -07:00
2018-03-26 15:09:38 +02:00
2012-05-07 15:02:26 +02:00
2018-04-03 05:41:19 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-19 09:48:32 +02:00
2012-10-13 10:46:48 +01:00
2018-04-03 15:04:23 -04:00
2017-06-19 11:03:51 -04:00
2017-11-02 11:10:55 +01:00
2017-11-21 22:37:05 +05:30
2018-04-05 10:23:24 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-12-25 11:04:12 +01:00
2017-11-02 11:10:55 +01:00
2018-03-14 12:32:06 +01:00
2018-05-14 08:56:29 +02:00
2017-11-02 11:10:55 +01:00
2018-01-01 12:40:27 -07:00
2018-02-08 15:13:30 -05:00
2018-04-24 13:38:42 -04:00
2017-07-12 16:26:01 -07:00
2014-12-31 13:06:50 -05:00
2017-11-13 01:41:20 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-12 12:28:32 -07:00
2018-04-06 14:05:14 +01:00
2014-10-15 21:31:27 +05:30
2018-04-25 21:23:38 -07:00
2018-04-02 20:15:02 +02:00
2018-04-26 09:02:01 -06:00
2017-11-30 11:05:02 +01:00
2016-05-28 15:48:31 -04:00
2013-04-30 10:09:06 +02:00
2017-05-16 19:44:01 +01:00
2018-04-11 10:28:31 -07:00
2018-04-26 14:53:32 +02:00
2017-11-07 10:32:44 +01:00
2016-11-21 22:50:45 +08:00
2015-05-02 09:54:30 +03:00
2017-10-30 08:42:21 +01:00
2018-03-24 13:26:13 +01:00
2018-04-11 10:28:39 -07:00
2017-10-09 10:18:11 -07:00
2017-12-08 14:51:46 -05:00
2018-01-09 10:56:10 -05:00
2018-03-09 12:02:59 -05:00
2018-04-17 13:59:28 -04:00
2017-08-07 11:39:22 -07:00
2018-03-26 08:53:43 -06:00
2006-10-05 15:10:12 +01:00
2017-11-17 09:51:57 -08:00
2017-11-08 10:17:15 +01:00
2017-10-12 14:18:02 +02:00
2018-01-08 19:43:15 +01:00
2017-11-02 11:10:55 +01:00
2016-05-16 11:14:29 -04:00
2018-03-20 08:57:17 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:35 -07:00
2017-07-29 09:00:03 -06:00
2018-04-13 17:10:28 -07:00
2018-04-11 10:28:38 -07:00
2012-07-21 10:34:00 -07:00
2017-11-13 08:00:52 +01:00
2018-05-03 07:38:05 +02:00
2018-05-11 11:21:10 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-02 16:50:28 -08:00
2006-06-09 21:53:55 +02:00
2018-04-17 13:42:48 +02:00
2018-04-12 09:41:19 -07:00
2015-08-10 14:29:27 +05:30
2018-04-07 12:08:19 -07:00
2018-04-11 10:28:31 -07:00
2018-04-11 10:28:32 -07:00
2017-01-24 12:23:35 -05:00
2018-04-12 21:46:10 -04:00
2018-04-11 10:28:32 -07:00
2017-11-02 11:10:55 +01:00
2018-05-18 17:17:12 -07:00
2018-04-11 10:28:32 -07:00
2018-04-13 15:37:59 +02:00
2018-03-31 23:37:32 -04:00
2018-03-30 10:11:06 -04:00
2018-04-10 16:06:22 -04:00
2018-04-10 16:06:22 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-16 16:47:29 +01:00
2017-11-02 11:10:55 +01:00
2018-01-08 08:22:45 -06:00
2018-03-05 13:29:46 -06:00
2016-04-26 10:19:38 +05:30
2012-10-13 10:46:48 +01:00
2018-05-11 17:28:45 -07:00
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:25 -07:00
2017-11-02 11:10:55 +01: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
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 11:45:16 +02:00
2018-03-29 16:07:22 +02:00
2018-03-23 11:31:58 -04:00
2018-02-06 18:32:47 -08:00
2012-10-13 10:46:48 +01:00
2014-10-08 10:39:33 +05:30
2017-11-02 11:10:55 +01:00
2018-01-02 19:27:28 -08:00
2018-01-04 14:57:10 +01:00
2018-02-21 23:27:13 +01:00
2010-08-04 21:53:17 -07:00
2012-10-13 10:46:48 +01:00
2017-09-08 18:26:51 -07:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:39 -07:00
2018-02-12 11:43:25 -05:00
2017-11-02 11:10:55 +01:00
2018-05-11 17:28:45 -07:00
2018-05-11 17:28:45 -07:00
2018-02-20 16:12:26 -08:00
2017-11-02 11:10:55 +01:00
2018-04-25 16:43:55 -07:00
2017-11-27 09:16:40 +01:00
2015-02-05 15:09:25 +01:00
2018-06-05 10:33:35 -07:00
2017-11-02 11:10:55 +01:00
2018-03-01 08:33:05 -07:00
2018-05-16 11:45:16 +02:00
2017-11-02 11:10:55 +01:00
2018-05-04 07:54:54 +02:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:36 -07:00
2018-04-23 10:06:59 +02:00
2018-02-12 19:55:21 +01:00
2016-07-13 09:24:51 +02:00
2018-04-13 17:10:28 -07:00
2015-08-05 08:48:00 +05:30
2018-04-16 02:06:47 -04:00
2018-01-29 12:02:54 -05:00
2017-12-19 11:01:02 +01:00
2017-10-10 11:50:19 +02:00
2017-11-02 11:10:55 +01:00
2018-04-28 15:01:14 -07:00
2013-04-30 15:50:12 +05:30
2017-11-02 11:10:55 +01:00
2018-03-20 10:01:59 +01:00
2014-03-26 16:49:31 -04:00
2018-01-25 16:41:14 -08:00
2018-04-16 18:53:13 -04: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
2008-03-10 18:01:18 -07:00
2016-12-25 11:04:12 +01: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
2017-11-02 11:10:55 +01:00
2016-07-28 16:07:41 -07:00
2018-04-10 11:27:30 -07:00
2015-11-05 19:34:48 -08:00
2017-11-27 16:19:52 -05:00
2018-04-23 11:05:52 +02:00
2017-05-16 15:41:29 -04:00
2017-04-08 18:13:27 +02:00
2016-12-11 18:01:51 -08:00
2018-04-11 10:28:35 -07:00
2011-10-31 19:32:31 -04:00
2018-04-23 13:41:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 01:37:35 +09:00
2017-11-02 11:10:55 +01:00
2018-04-25 20:33:19 +03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:30 -07:00
2018-05-03 09:25:47 -06:00
2017-11-02 11:10:55 +01:00
2017-11-03 16:34:00 -07:00
2018-04-03 18:00:13 -07:00
2018-04-11 10:28:39 -07:00
2017-11-02 11:10:55 +01:00
2017-08-15 09:02:07 -07:00
2011-01-13 08:03:24 -08:00
2017-11-02 11:10:55 +01:00