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>
Tue, 28 Jun 2022 20:20:00 +0000 (22:20 +0200)
commit42504af775361ca2330a2bfde496a5ebc5655c86
tree68271971a0df78afa79870cc44ecbffc5b3a30d6
parentaacb455dfe01b7a24a792a2fbe7a04112ce8321d
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