diff options
author | Darren Hart (VMware) <dvhart@infradead.org> | 2018-03-22 18:11:22 -0700 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2018-04-19 16:25:54 -0700 |
commit | de15b94f87d1e55c51e45127d761ebfab000232e (patch) | |
tree | 4478014c1aea73cd9522edf3cc345c54b741f511 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) |
platform/x86: fujitsu-laptop: Simplify soft key handling
The hardcoded BIT(X) used in the soft key handling can be confusing and
prone to errors.
Instead, use the status FLAG_* defines for the sparse keymap index.
Rather than check for each known bit, use a bitmask to filter for all
known soft keys, and use the for_each_set_bit iterator.
Cc: Jan-Marek Glogowski <glogow@fbihome.de>
Cc: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions