platform/x86: think-lmi: Fix attribute name usage for non-compliant items
authorMark Pearson <mpearson-lenovo@squebb.ca>
Tue, 20 May 2025 00:50:18 +0000 (20:50 -0400)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 20 May 2025 09:40:03 +0000 (12:40 +0300)
commit8508427a6e21c1ef01ae4c9f4e2675fc99deb949
tree0ec1f302510f0baa371df5e3be70491cbf8ab076
parent29e4e6b4235fefa5930affb531fe449cac330a72
platform/x86: think-lmi: Fix attribute name usage for non-compliant items

A few, quite rare, WMI attributes have names that are not compatible with
filenames, e.g. "Intel VT for Directed I/O (VT-d)".
For these cases the '/' gets replaced with '\' for display, but doesn't
get switched again when doing the WMI access.

Fix this by keeping the original attribute name and using that for sending
commands to the BIOS

Fixes: a40cd7ef22fb ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20250520005027.3840705-1-mpearson-lenovo@squebb.ca
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/think-lmi.c
drivers/platform/x86/think-lmi.h