summaryrefslogtreecommitdiff
path: root/include/linux/wmi.h
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-06-24 20:31:15 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-06-24 20:36:08 +0300
commit12046f8c77e0ed6d41beabde0edbb729499c970b (patch)
tree44a0963ce0848a34db25e4473a252d519189f529 /include/linux/wmi.h
parent4261031484d8f8fcbd2bd6517416b88545447597 (diff)
downloadlinux-12046f8c77e0ed6d41beabde0edbb729499c970b.tar.xz
platform/x86: wmi: Add driver_override support
Add support for forcing the WMI driver core to bind a certain WMI driver to a WMI device. This will be necessary to support generic WMI drivers without an ID table Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20240624173116.31314-2-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 'include/linux/wmi.h')
-rw-r--r--include/linux/wmi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h
index 63cca3b58d6d..3275470b5531 100644
--- a/include/linux/wmi.h
+++ b/include/linux/wmi.h
@@ -16,12 +16,16 @@
* struct wmi_device - WMI device structure
* @dev: Device associated with this WMI device
* @setable: True for devices implementing the Set Control Method
+ * @driver_override: Driver name to force a match; do not set directly,
+ * because core frees it; use driver_set_override() to
+ * set or clear it.
*
* This represents WMI devices discovered by the WMI driver core.
*/
struct wmi_device {
struct device dev;
bool setable;
+ const char *driver_override;
};
/**