diff options
author | Dmitry Torokhov <[email protected]> | 2018-06-05 10:08:44 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2018-06-11 10:21:06 -0700 |
commit | bf6247a70f2b7569180304041b63b59ab14217bc (patch) | |
tree | c125ed31db1afc366437d35a4c5bf1db6272dbbc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 645a397d325db6e1bb36588095ae637738b37693 (diff) |
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 <[email protected]>
Acked-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions