diff options
author | Stefan Seyfried <seife+kernel@b1-systems.com> | 2022-06-24 13:23:35 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-06-28 21:45:26 +0200 |
commit | 758babb511d883cd2aa784d48a362d92119ade99 (patch) | |
tree | 75a7622ba6c7bfca90222fbaa0ff95818e983d19 /net/xfrm/xfrm_compat.c | |
parent | 3888bb741177718177c49a6b1b7c174b5b18c1be (diff) |
platform/x86: panasonic-laptop: de-obfuscate button codes
In the definition of panasonic_keymap[] the key codes are given in
decimal, later checks are done with hexadecimal values, which does
not help in understanding the code.
Additionally use two helper variables to shorten the code and make
the logic more obvious.
Fixes: ed83c9171829 ("platform/x86: panasonic-laptop: Resolve hotkey double trigger bug")
Signed-off-by: Stefan Seyfried <seife+kernel@b1-systems.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220624112340.10130-3-hdegoede@redhat.com
Diffstat (limited to 'net/xfrm/xfrm_compat.c')
0 files changed, 0 insertions, 0 deletions