diff options
Diffstat (limited to 'drivers/leds/leds-clevo-mail.c')
-rw-r--r-- | drivers/leds/leds-clevo-mail.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c index 5750b08b601f..eb3415e88f43 100644 --- a/drivers/leds/leds-clevo-mail.c +++ b/drivers/leds/leds-clevo-mail.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #define CLEVO_MAIL_LED_BLINK_1HZ 0x008A | 14 | #define CLEVO_MAIL_LED_BLINK_1HZ 0x008A |
15 | #define CLEVO_MAIL_LED_BLINK_0_5HZ 0x0083 | 15 | #define CLEVO_MAIL_LED_BLINK_0_5HZ 0x0083 |
16 | 16 | ||
17 | MODULE_AUTHOR("Márton Németh <nm127@freemail.hu>"); | 17 | MODULE_AUTHOR("Márton Németh <nm127@freemail.hu>"); |
18 | MODULE_DESCRIPTION("Clevo mail LED driver"); | 18 | MODULE_DESCRIPTION("Clevo mail LED driver"); |
19 | MODULE_LICENSE("GPL"); | 19 | MODULE_LICENSE("GPL"); |
20 | 20 | ||
@@ -69,6 +69,16 @@ static struct dmi_system_id __initdata mail_led_whitelist[] = { | |||
69 | }, | 69 | }, |
70 | { | 70 | { |
71 | .callback = clevo_mail_led_dmi_callback, | 71 | .callback = clevo_mail_led_dmi_callback, |
72 | .ident = "Clevo D400P", | ||
73 | .matches = { | ||
74 | DMI_MATCH(DMI_BOARD_VENDOR, "Clevo"), | ||
75 | DMI_MATCH(DMI_BOARD_NAME, "D400P"), | ||
76 | DMI_MATCH(DMI_BOARD_VERSION, "Rev.A"), | ||
77 | DMI_MATCH(DMI_PRODUCT_VERSION, "0106") | ||
78 | } | ||
79 | }, | ||
80 | { | ||
81 | .callback = clevo_mail_led_dmi_callback, | ||
72 | .ident = "Clevo D410V", | 82 | .ident = "Clevo D410V", |
73 | .matches = { | 83 | .matches = { |
74 | DMI_MATCH(DMI_BOARD_VENDOR, "Clevo, Co."), | 84 | DMI_MATCH(DMI_BOARD_VENDOR, "Clevo, Co."), |
@@ -93,8 +103,8 @@ static void clevo_mail_led_set(struct led_classdev *led_cdev, | |||
93 | } | 103 | } |
94 | 104 | ||
95 | static int clevo_mail_led_blink(struct led_classdev *led_cdev, | 105 | static int clevo_mail_led_blink(struct led_classdev *led_cdev, |
96 | unsigned long* delay_on, | 106 | unsigned long *delay_on, |
97 | unsigned long* delay_off) | 107 | unsigned long *delay_off) |
98 | { | 108 | { |
99 | int status = -EINVAL; | 109 | int status = -EINVAL; |
100 | 110 | ||