summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/wmi.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-01-21 23:08:24 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-01-24 14:09:10 +0300
commit3f399b5d7189bcb608c75abc85fe39f7a5509cfa (patch)
tree4f60db391b2833714e743a9f1d8b14ef302b2a11 /drivers/platform/x86/wmi.c
parente5afa3d7a91bb673018a2a9540c12c82e64e652c (diff)
downloadlinux-3f399b5d7189bcb608c75abc85fe39f7a5509cfa.tar.xz
platform/x86: wmi: Use ACPI device name in netlink event
The device name inside the ACPI netlink event is limited to 15 characters, so the WMI device name will get truncated. This can be observed with kacpimon when receiving an event from WMI device "9DBB5994-A997-11DA-B012-B622A1EF5492": netlink: 9DBB5994-A997- 000000d0 00000000 Fix this by using the shorter device name from the ACPI bus device instead. This still allows users to uniquely identify the WMI device by using the notify id (0xd0). Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20240121200824.2778-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>
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r--drivers/platform/x86/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index bd271a5730aa..7ef1e82dc61c 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -1203,7 +1203,7 @@ static int wmi_notify_device(struct device *dev, void *data)
}
acpi_bus_generate_netlink_event(wblock->acpi_device->pnp.device_class,
- dev_name(&wblock->dev.dev), *event, 0);
+ acpi_dev_name(wblock->acpi_device), *event, 0);
return -EBUSY;
}