summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/think-lmi.h
diff options
context:
space:
mode:
authorMark Pearson <markpearson@lenovo.com>2021-06-28 18:28:46 -0400
committerHans de Goede <hdegoede@redhat.com>2021-07-14 15:06:27 +0200
commit95d429206c97cf109591009fa386004191c62c47 (patch)
tree0f67e7d395e7a7806d1480f95f6c27c855c5ea20 /drivers/platform/x86/think-lmi.h
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
platform/x86: think-lmi: Add pending_reboot support
The Think-lmi driver was missing pending_reboot support as it wasn't available from the BIOS. Turns out this is really useful to have from user space so implementing from a purely SW point of view. Thanks to Mario Limonciello for guidance on how fwupd would use this. Suggested-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mark Pearson <markpearson@lenovo.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210628222846.8830-1-markpearson@lenovo.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/think-lmi.h')
-rw-r--r--drivers/platform/x86/think-lmi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/think-lmi.h b/drivers/platform/x86/think-lmi.h
index 6fa8da7af6c7..eb598846628a 100644
--- a/drivers/platform/x86/think-lmi.h
+++ b/drivers/platform/x86/think-lmi.h
@@ -60,6 +60,7 @@ struct think_lmi {
bool can_get_bios_selections;
bool can_set_bios_password;
bool can_get_password_settings;
+ bool pending_changes;
struct tlmi_attr_setting *setting[TLMI_SETTINGS_COUNT];
struct device *class_dev;