Skip to content
Snippets Groups Projects
Commit eacc95ea authored by Mattias Jacobsson's avatar Mattias Jacobsson Committed by Darren Hart (VMware)
Browse files

platform/x86: wmi: move struct wmi_device_id to mod_devicetable.h


In preparation for adding WMI support to MODULE_DEVICE_TABLE() move the
definition of struct wmi_device_id to mod_devicetable.h and inline
guid_string in the struct.

Changing guid_string to an inline char array changes the loop conditions
when looping over an array of struct wmi_device_id. Therefore update
wmi_dev_match()'s loop to check for an empty guid_string instead of a
NULL pointer.

Signed-off-by: default avatarMattias Jacobsson <2pi@mok.nu>
[dvhart: Move UUID_STRING_LEN define to this patch]
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent 841f1b8f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment