diff options
author | Darren Hart (VMware) <dvhart@infradead.org> | 2017-12-08 23:57:54 +0100 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-12-12 01:30:51 +0100 |
commit | 1c3fdf125ef416227e43fdedf6b5097c41e8c467 (patch) | |
tree | 9b7266732ce8d13c0e1b29ccea7d74f37db3d843 /COPYING | |
parent | platform/x86: intel-vbtn: support panel front button (diff) | |
download | linux-1c3fdf125ef416227e43fdedf6b5097c41e8c467.tar.xz linux-1c3fdf125ef416227e43fdedf6b5097c41e8c467.zip |
platform/x86: intel-vbtn: Simplify autorelease logic
The new notify_handler logic determining if autorelease should be used or
not is a bit awkward, and can result in more than one call to
sparse_keymap_report_event for the same event (scancode). The nesting
and long lines also made it difficult to read.
Simplify the logic by eliminating a level of nesting with a goto and
always calculate autorelease and val so we can make a single call to
sparse_keymap_report_event.
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Reviewed-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Tested-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Cc: AceLan Kao <acelan.kao@canonical.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions