platform/x86: wmi: move struct wmi_device_id to mod_devicetable.h
authorMattias Jacobsson <2pi@mok.nu>
Tue, 19 Feb 2019 19:59:49 +0000 (20:59 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 7 Mar 2019 16:46:07 +0000 (08:46 -0800)
commiteacc95eae6837d3f41aed7d30b855a79ab2cb101
tree7626e82bcc2d50f90555db0535eddf3ab64728cc
parent841f1b8fb4ca5e296e0ecb2b13f2a679d912ec4d
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: Mattias Jacobsson <2pi@mok.nu>
[dvhart: Move UUID_STRING_LEN define to this patch]
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/wmi.c
include/linux/mod_devicetable.h
include/linux/wmi.h
scripts/mod/file2alias.c