summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-04-24 15:28:17 +0300
committerHans de Goede <hdegoede@redhat.com>2024-04-29 12:44:12 +0300
commit33dc2efda4e2ec48a77338c75b55325801492f09 (patch)
tree3ac7d1a8816bef40e1360dbea63f67a951f4e450 /tools/perf/scripts/python/export-to-sqlite.py
parent9e5d6b982c5491a4590fa2d4b5494527c4527407 (diff)
downloadlinux-33dc2efda4e2ec48a77338c75b55325801492f09.tar.xz
platform/x86: thinkpad_acpi: Make tpacpi_driver_event() return if it handled the event
tpacpi_driver_event() already only responds to hkey events which it knows about. Make it return a bool and return true when it has handled the event. This avoids the need to list TP_HKEY_EV_foo values to which it responds both in its caller and in the function itself. Instead callers can now call it unconditionally and check the return value. Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240424122834.19801-8-hdegoede@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions