summaryrefslogtreecommitdiffstats
path: root/include/linux/input/cy8ctmg110_pdata.h
diff options
context:
space:
mode:
authorDmitry Torokhov2018-06-05 19:08:44 +0200
committerDmitry Torokhov2018-06-11 19:21:06 +0200
commitbf6247a70f2b7569180304041b63b59ab14217bc (patch)
treec125ed31db1afc366437d35a4c5bf1db6272dbbc /include/linux/input/cy8ctmg110_pdata.h
parentInput: synaptics-rmi4 - fix axis-swap behavior (diff)
downloadkernel-qcow2-linux-bf6247a70f2b7569180304041b63b59ab14217bc.tar.gz
kernel-qcow2-linux-bf6247a70f2b7569180304041b63b59ab14217bc.tar.xz
kernel-qcow2-linux-bf6247a70f2b7569180304041b63b59ab14217bc.zip
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>
Diffstat (limited to 'include/linux/input/cy8ctmg110_pdata.h')
0 files changed, 0 insertions, 0 deletions