Skip to content
Snippets Groups Projects
Commit 52e7d1f7 authored by Vishnu Sankar's avatar Vishnu Sankar Committed by Jiri Kosina
Browse files

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: default avatarVishnu Sankar <vishnuocv@gmail.com>
Signed-off-by: default avatarVishnu Sankar <vsankar@lenovo.com>
Suggested-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
Suggested-by: default avatarJiri Kosina <jikos@kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 84c9d2a9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment