kernel_optimize_test/include/linux/input
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
..
ad714x.h
adp5589.h
adxl34x.h Input: adxl34x - make platform_data include self contained 2012-12-24 09:52:42 -08:00
as5011.h
auo-pixcir-ts.h Input: auo-pixcir-ts - handle reset gpio directly 2013-02-24 19:10:10 -08:00
bu21013.h Input: bu21013_ts - move GPIO init and exit functions into the driver 2012-11-27 23:05:11 -08:00
cma3000.h
cy8ctmg110_pdata.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cyttsp.h Input: cyttsp - switch to using device properties 2016-01-27 14:32:48 -08:00
gp2ap002a00f.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ili210x.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kxtj9.h
lm8333.h
matrix_keypad.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mt.h Input: make input_report_slot_state() return boolean 2018-06-11 10:21:06 -07:00
navpoint.h
samsung-keypad.h
sh_keysc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sparse-keymap.h Input: sparse-keymap - remove sparse_keymap_free() 2017-05-29 20:02:01 -07:00
touchscreen.h Input: of_touchscreen - add support for inverted / swapped axes 2016-07-15 14:50:53 -07:00
tps6507x-ts.h Input: tps6507x-ts - remove vref from platform data 2013-06-25 09:47:35 -07:00