public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove HID_LENOVO's dependency on ACPI
@ 2025-05-18 10:18 Janne Grunau via B4 Relay
  2025-05-18 10:18 ` [PATCH 1/2] ACPI: platform_profile: Stub platform_profile_cycle Janne Grunau via B4 Relay
  2025-05-18 10:18 ` [PATCH 2/2] HID: lenovo: Remove CONFIG_ACPI dependency Janne Grunau via B4 Relay
  0 siblings, 2 replies; 7+ messages in thread
From: Janne Grunau via B4 Relay @ 2025-05-18 10:18 UTC (permalink / raw)
  To: Arnd Bergmann, Jiri Kosina, Benjamin Tissoires, Rafael J. Wysocki,
	Len Brown
  Cc: linux-kernel, linux-input, linux-acpi, Janne Grunau

hid-lenovo supports external generic USB and Bluetooth devices and
should be buildable and usable on non-ACPI kernels and systems. Commit
84c9d2a968c82 ("HID: lenovo: Support for ThinkPad-X12-TAB-1/2 Kbd Fn
keys") added a hot key to cycle through power profiles using ACPI's
platform_profile. This resulted in adding a dependency on ACPI and
selecting CONFIG_ACPI_PLATFORM_PROFILE to fix build an link errors in
commit 52572cde8b4a ("HID: lenovo: select
CONFIG_ACPI_PLATFORM_PROFILE"). This is undesirable for HID drivers
supporting generic USB and Bluetooth devices. So instead stub the only
used function platform_profile_cycle() and relax the dependency.

Signed-off-by: Janne Grunau <j@jannau.net>
---
Janne Grunau (2):
      ACPI: platform_profile: Stub platform_profile_cycle
      HID: lenovo: Remove CONFIG_ACPI dependency

 drivers/hid/Kconfig              |  4 ++--
 include/linux/platform_profile.h | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250518-hid_lenovo_acpi_dependency-0ea78a6bd740

Best regards,
-- 
Janne Grunau <j@jannau.net>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-05-18 14:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-18 10:18 [PATCH 0/2] Remove HID_LENOVO's dependency on ACPI Janne Grunau via B4 Relay
2025-05-18 10:18 ` [PATCH 1/2] ACPI: platform_profile: Stub platform_profile_cycle Janne Grunau via B4 Relay
2025-05-18 10:42   ` Arnd Bergmann
2025-05-18 14:45     ` Janne Grunau
2025-05-18 12:38   ` kernel test robot
2025-05-18 10:18 ` [PATCH 2/2] HID: lenovo: Remove CONFIG_ACPI dependency Janne Grunau via B4 Relay
2025-05-18 10:36   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox