platform/x86: thinkpad-acpi: profile capabilities as integer
authorMark Pearson <markpearson@lenovo.com>
Fri, 3 Jun 2022 17:02:09 +0000 (13:02 -0400)
committerHans de Goede <hdegoede@redhat.com>
Wed, 22 Jun 2022 09:49:27 +0000 (11:49 +0200)
commit6fe391dd5d87cb166bccc66dfb603e1f3e41db5a
tree55b1d7fafc6c9388b83f51b1a70e0955983c91b2
parent7518eefeb7ad55ca2126ebdd6369490b9dc5e7a8
platform/x86: thinkpad-acpi: profile capabilities as integer

Currently the active mode (PSC/MMC) is stored in an enum and queried
throughout the driver.

Other driver changes will enumerate additional submodes that are relevant
to be tracked, so instead track PSC/MMC in a single integer variable.

Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220603170212.164963-1-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c