History

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.

Mattias Jacobsson committed 7 years ago

Commit eacc95e1 parent 841f1b84 files · +15 −5Browse files

Showing the changes to scripts (1 of 4 files). Show all

Unified · Split

scripts/mod/file2alias.c+1−0
@@ -37,6 +37,7 @@ typedef unsigned char __u8; · 36 unmodified lines
3737 typedef struct {
3838 __u8 b[16];
3939 } uuid_le;
40+#define UUID_STRING_LEN 36
4041
4142 /* Big exception to the "don't include kernel headers into userspace, which
4243 * even potentially has different endianness and word sizes, since