Skip to content

Commit 8062d91

Browse files
committed
Revert "HID: lenovo: Remove CONFIG_ACPI dependency"
This reverts commit 5070307.
1 parent 52d6e92 commit 8062d91

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

drivers/hid/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ config HID_LED
597597

598598
config HID_LENOVO
599599
tristate "Lenovo / Thinkpad devices"
600-
select ACPI_PLATFORM_PROFILE if ACPI
600+
depends on ACPI
601+
select ACPI_PLATFORM_PROFILE
601602
select NEW_LEDS
602603
select LEDS_CLASS
603604
help

drivers/hid/hid-lenovo.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,8 @@ static int lenovo_raw_event_TP_X12_tab(struct hid_device *hdev, u32 raw_data)
734734
report_key_event(input, KEY_RFKILL);
735735
return 1;
736736
}
737-
if (IS_ENABLED(CONFIG_ACPI_PLATFORM_PROFILE)) {
738-
platform_profile_cycle();
739-
return 1;
740-
}
741-
return 0;
737+
platform_profile_cycle();
738+
return 1;
742739
case TP_X12_RAW_HOTKEY_FN_F10:
743740
/* TAB1 has PICKUP Phone and TAB2 use Snipping tool*/
744741
(hdev->product == USB_DEVICE_ID_LENOVO_X12_TAB) ?

0 commit comments

Comments
 (0)