clevo_interfaces: Move module alias defines

This commit is contained in:
Christoffer Sandberg 2020-12-07 16:37:26 +01:00
parent bea8621bdb
commit 597902a808
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
2 changed files with 12 additions and 1 deletions

View file

@ -59,4 +59,15 @@ u32 clevo_keyboard_remove_interface(struct clevo_interface_t *interface);
u32 clevo_evaluate_method(u8 cmd, u32 arg, u32 *result);
u32 clevo_get_active_interface_id(char **id_str);
#define MODULE_ALIAS_CLEVO_WMI() \
MODULE_ALIAS("wmi:" CLEVO_WMI_EVENT_GUID); \
MODULE_ALIAS("wmi:" CLEVO_WMI_METHOD_GUID);
#define MODULE_ALIAS_CLEVO_ACPI() \
MODULE_ALIAS("acpi*:" CLEVO_ACPI_RESOURCE_HID ":*");
#define MODULE_ALIAS_CLEVO_INTERFACES() \
MODULE_ALIAS_CLEVO_WMI(); \
MODULE_ALIAS_CLEVO_ACPI();
#endif

View file

@ -159,4 +159,4 @@ MODULE_VERSION("0.0.1");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(wmi, clevo_wmi_device_ids);
MODULE_ALIAS("wmi:" CLEVO_WMI_EVENT_GUID);
MODULE_ALIAS_CLEVO_WMI();