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.
Showing the changes to scripts (1 of 4 files). Show all
Unified · Split
| @@ -37,6 +37,7 @@ typedef unsigned char __u8; · 36 unmodified lines | ||
| 37 | 37 | typedef struct { |
| 38 | 38 | __u8 b[16]; |
| 39 | 39 | } uuid_le; |
| 40 | +#define UUID_STRING_LEN 36 | |
| 40 | 41 | |
| 41 | 42 | /* Big exception to the "don't include kernel headers into userspace, which |
| 42 | 43 | * even potentially has different endianness and word sizes, since |