Vishnu Sankar
52e7d1f7c2
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 <vishnuocv@gmail.com >
Signed-off-by: Vishnu Sankar <vsankar@lenovo.com >
Suggested-by: Benjamin Tissoires <bentiss@kernel.org >
Suggested-by: Jiri Kosina <jikos@kernel.org >
Signed-off-by: Jiri Kosina <jkosina@suse.com >
2025-01-10 16:04:39 +01:00
..
2024-10-09 17:18:57 +02:00
2024-11-28 14:49:51 +01:00
2024-11-28 11:18:14 +01:00
2024-11-18 21:58:55 +01:00
2024-12-01 15:12:43 -08:00
2024-11-18 21:58:55 +01:00
2024-06-06 10:52:48 +02:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2024-10-08 08:53:49 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:30:43 +02:00
2024-11-28 14:49:28 +01:00
2024-10-11 12:57:48 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-10-18 12:50:08 +02:00
2024-08-27 16:29:55 +02:00
2024-10-18 12:24:52 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-11-18 22:02:17 +01:00
2024-08-27 16:29:55 +02:00
2024-11-13 10:56:37 +01:00
2024-12-01 15:12:43 -08:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-09-05 16:20:56 +02:00
2024-08-27 16:29:55 +02:00
2024-11-12 10:15:30 +01:00
2024-11-18 21:53:30 +01:00
2024-08-06 08:42:53 +02:00
2024-08-27 16:29:55 +02:00
2024-07-12 18:28:03 +02:00
2024-09-05 16:20:56 +02:00
2024-10-02 17:23:23 -04:00
2024-10-18 12:28:40 +02:00
2024-07-10 09:11:27 +02:00
2025-01-10 16:04:39 +01:00
2024-10-02 17:23:23 -04:00
2024-02-13 11:43:55 +01:00
2024-10-18 12:50:08 +02:00
2024-06-06 10:52:09 +02:00
2024-09-06 10:06:02 +02:00
2024-10-02 17:23:23 -04:00
2024-11-18 21:58:55 +01:00
2024-08-27 16:29:55 +02:00
2024-11-11 22:49:28 +01:00
2024-09-05 16:20:56 +02:00
2023-11-21 09:27:18 +01:00
2024-07-12 18:30:11 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-11-18 21:49:47 +01:00
2024-10-02 17:23:23 -04:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-05-23 14:17:22 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 10:55:15 +02:00
2024-05-22 10:45:12 -07:00
2024-11-22 16:29:57 -08:00
2024-09-30 16:49:42 +01:00
2024-06-06 10:52:48 +02:00
2024-10-08 08:45:17 +02:00
2024-10-02 17:23:23 -04:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-09-05 16:20:57 +02:00
2023-12-04 16:21:05 +01:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2023-10-25 18:33:42 +02:00
2024-04-03 13:42:04 +02:00
2024-04-03 13:42:04 +02:00
2024-04-03 13:42:04 +02:00
2024-04-03 13:42:04 +02:00
2024-04-03 13:42:04 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-12-01 15:12:43 -08:00
2024-08-27 16:29:55 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-10-18 12:50:08 +02:00
2024-06-06 10:52:48 +02:00
2024-10-08 08:53:49 +02:00
2024-11-06 15:10:32 +01:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2023-10-25 16:25:47 +02:00
2024-09-05 16:20:57 +02:00
2023-10-25 16:25:47 +02:00
2024-10-02 17:23:23 -04:00
2024-09-05 16:20:57 +02:00
2024-12-02 11:34:44 -08:00
2024-10-02 17:23:23 -04:00
2024-09-05 16:20:57 +02:00
2024-09-05 16:20:57 +02:00
2024-06-06 10:52:48 +02:00
2024-09-05 16:20:57 +02:00
2024-09-05 16:20:57 +02:00
2024-08-27 18:25:53 +02:00
2024-09-05 16:20:57 +02:00
2024-06-06 10:52:48 +02:00
2024-06-06 10:52:48 +02:00
2024-08-27 16:29:55 +02:00
2024-08-29 10:39:37 +02:00
2024-11-18 21:58:24 +01:00
2024-11-18 21:58:24 +01:00
2024-09-27 08:18:43 -07:00
2024-11-28 14:40:42 +01:00
2024-11-18 21:29:33 +01:00
2024-10-18 12:48:35 +02:00
2024-10-02 17:23:23 -04:00