linux-stable/drivers/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
..
gameport
joystick Input: xpad - add GPD Win 2 Controller USB IDs 2018-06-04 13:31:22 -07:00
keyboard Input: goldfish_events - fix checkpatch warnings 2018-06-04 13:36:26 -07:00
misc Input: add Spreadtrum vibrator driver 2018-06-04 13:36:11 -07:00
mouse Linux 4.17-rc6 2018-05-24 09:30:15 -07:00
rmi4 Input: synaptics-rmi4 - fix axis-swap behavior 2018-06-11 10:20:16 -07:00
serio Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2018-04-05 13:21:57 -07:00
tablet Input: pegasus_notetaker - do not rely on input_dev->users 2018-03-17 11:05:18 -07:00
touchscreen Input: goodix - add new ACPI id for GPD Win 2 touch screen 2018-06-04 13:31:48 -07:00
apm-power.c
evbug.c
evdev.c Revert: Unify CLOCK_MONOTONIC and CLOCK_BOOTTIME 2018-04-26 14:53:32 +02:00
ff-core.c
ff-memless.c
input-compat.c
input-compat.h
input-leds.c Input: leds - fix out of bound access 2018-04-11 14:52:59 -07:00
input-mt.c Input: make input_report_slot_state() return boolean 2018-06-11 10:21:06 -07:00
input-polldev.c
input.c Input: replace hard coded string with __func__ in pr_err() 2018-05-15 12:00:53 -07:00
joydev.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
Kconfig
Makefile
matrix-keymap.c
mousedev.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
sparse-keymap.c