]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Restore missing hotkey_tablet_mode and hotkey_radio_sw...
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Nov 2021 21:04:19 +0000 (22:04 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 25 Nov 2021 15:20:47 +0000 (16:20 +0100)
commit28625f10db8a18a3058b46c3c55ae1abf0834a4b
treed570535af50cc33f1e63c6780673145be105f10d
parentb2b4482a697007a7ee0e3a4414af9fe6f5bff28e
platform/x86: thinkpad_acpi: Restore missing hotkey_tablet_mode and hotkey_radio_sw sysfs-attr

Commit 358d7b84a13a ("platform/x86: thinkpad_acpi: Switch to common use
of attributes") removed the conditional adding of the
hotkey_tablet_mode and hotkey_radio_sw sysfs-attributes, replacing this
with a hotkey_attr_is_visible() callback which hides them when the
feature is not present.

But this commit forgot to add these 2 attributes to the default
hotkey_attributes[] set, so they would now never get added at all.

Add the 2 attributes to the default hotkey_attributes[] set so that
they are available on systems with these features once more.

Fixes: 358d7b84a13a ("platform/x86: thinkpad_acpi: Switch to common use of attributes")
Cc: Len Baker <len.baker@gmx.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211123210424.266607-2-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c