platform/x86: wmi: Stop using ACPI device class
authorArmin Wolf <W_Armin@gmx.de>
Tue, 30 Jan 2024 22:19:42 +0000 (23:19 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 6 Feb 2024 09:53:20 +0000 (11:53 +0200)
commit6468e64ee380514b331ccb743fa491b23cd8b4dd
treebe4e657b84dfa1a21a8a73cbda5ef9977cc65a99
parent682c259a849610c7864cc75d52415c782c78653a
platform/x86: wmi: Stop using ACPI device class

When an ACPI netlink event is received by acpid, the ACPI device
class is passed as its first argument. But since the class string
is not initialized during probe, an empty string is being passed:

netlink:  PNP0C14:01 000000d0 00000000

Fix this by passing a static string instead.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240130221942.2770-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c