Add module alias for the used WMI GUIDs

Should solve automatic loading issues without using the systemd
solutions.

Fixes #18
This commit is contained in:
Christoffer Sandberg 2020-04-14 12:47:05 +02:00
parent d73bb97038
commit 060297acee

View file

@ -1,7 +1,7 @@
/* /*
* tuxedo_keyboard.c * tuxedo_keyboard.c
* *
* Copyright (C) 2018 TUXEDO Computers GmbH <tux@tuxedocomputers.com> * Copyright (C) 2018-2020 TUXEDO Computers GmbH <tux@tuxedocomputers.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -28,12 +28,19 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/input.h> #include <linux/input.h>
#define CLEVO_EVENT_GUID "ABBC0F6B-8EA1-11D1-00A0-C90629100000"
#define CLEVO_EMAIL_GUID "ABBC0F6C-8EA1-11D1-00A0-C90629100000"
#define CLEVO_GET_GUID "ABBC0F6D-8EA1-11D1-00A0-C90629100000"
MODULE_AUTHOR MODULE_AUTHOR
("Christian Loritz / TUXEDO Computers GmbH <tux@tuxedocomputers.com>"); ("Christian Loritz / TUXEDO Computers GmbH <tux@tuxedocomputers.com>");
MODULE_DESCRIPTION("TUXEDO Computers Keyboard Backlight Driver"); MODULE_DESCRIPTION("TUXEDO Computers Keyboard Backlight Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION("2.0.1"); MODULE_VERSION("2.0.1");
MODULE_ALIAS("wmi:" CLEVO_EVENT_GUID);
MODULE_ALIAS("wmi:" CLEVO_GET_GUID);
/* :::: Module specific Constants and simple Macros :::: */ /* :::: Module specific Constants and simple Macros :::: */
#define __TUXEDO_PR(lvl, fmt, ...) do { pr_##lvl(fmt, ##__VA_ARGS__); } while (0) #define __TUXEDO_PR(lvl, fmt, ...) do { pr_##lvl(fmt, ##__VA_ARGS__); } while (0)
@ -45,10 +52,6 @@ MODULE_VERSION("2.0.1");
#define BRIGHTNESS_MAX 255 #define BRIGHTNESS_MAX 255
#define BRIGHTNESS_DEFAULT BRIGHTNESS_MAX #define BRIGHTNESS_DEFAULT BRIGHTNESS_MAX
#define CLEVO_EVENT_GUID "ABBC0F6B-8EA1-11D1-00A0-C90629100000"
#define CLEVO_EMAIL_GUID "ABBC0F6C-8EA1-11D1-00A0-C90629100000"
#define CLEVO_GET_GUID "ABBC0F6D-8EA1-11D1-00A0-C90629100000"
#define REGION_LEFT 0xF0000000 #define REGION_LEFT 0xF0000000
#define REGION_CENTER 0xF1000000 #define REGION_CENTER 0xF1000000
#define REGION_RIGHT 0xF2000000 #define REGION_RIGHT 0xF2000000