Files
android_kernel_fxtec_sm6115/include/linux
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
..
2012-10-08 13:50:20 +10:30
2018-04-20 17:18:35 -07:00
2011-03-11 14:25:50 +00:00
2018-04-11 10:28:37 -07:00
2018-03-16 10:56:13 +01:00
2017-11-15 18:21:04 -08:00
2018-03-16 10:55:47 +01:00
2018-03-26 15:09:38 +02:00
2018-01-01 12:40:27 -07:00
2014-12-31 13:06:50 -05:00
2017-11-13 01:41:20 +01:00
2018-04-26 09:02:01 -06:00
2018-03-26 08:53:43 -06:00
2018-04-11 10:28:35 -07:00
2018-04-11 10:28:38 -07:00
2018-04-12 09:41:19 -07:00
2018-04-11 10:28:32 -07:00
2018-01-08 08:22:45 -06:00
2018-04-11 10:28:39 -07:00
2010-08-04 21:53:17 -07: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
2018-03-01 08:33:05 -07:00
2018-01-29 12:02:54 -05:00
2013-04-30 15:50:12 +05:30
2017-08-15 09:02:07 -07:00
2011-01-13 08:03:24 -08:00