Commit 52e7d1f
HID: lenovo: Fix undefined platform_profile_cycle in ThinkPad X12 keyboard patch
The commit "HID: lenovo: Support for ThinkPad-X12-TAB-1/2 Kbd Fn keys"
introduced an issue where the CI failed with the following error:
ERROR: modpost: "platform_profile_cycle" [drivers/hid/hid-lenovo.ko] undefined!
This issue occurs because platform_profile_cycle is used without ensuring
the kernel is configured with CONFIG_ACPI_PLATFORM_PROFILE.
To address this, this patch adds conditional support for platform profile
management to the Fn+F8 key handling.
The functionality for platform_profile_cycle is now included only when
CONFIG_ACPI_PLATFORM_PROFILE is enabled in the kernel configuration.
This ensures compatibility with kernels that do not include the ACPI
platform profile feature, resolving the CI build issue.
Signed-off-by: Vishnu Sankar <[email protected]>
Signed-off-by: Vishnu Sankar <[email protected]>
Suggested-by: Benjamin Tissoires <[email protected]>
Suggested-by: Jiri Kosina <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>1 parent 84c9d2a commit 52e7d1f
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
724 | 727 | | |
725 | 728 | | |
726 | 729 | | |
727 | | - | |
728 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
729 | 736 | | |
730 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
731 | 741 | | |
732 | 742 | | |
733 | 743 | | |
| |||
0 commit comments