blob: c2c66ceca13276a85733a67b35c62033f2ee016e [file] [log] [blame]
Thomas Gleixnera10e7632019-05-31 01:09:32 -07001// SPDX-License-Identifier: GPL-2.0-only
Heiner Kallweit6c7ad072016-06-17 21:20:46 +02002/*
3 * Simple USB RGB LED driver
4 *
5 * Copyright 2016 Heiner Kallweit <hkallweit1@gmail.com>
6 * Based on drivers/hid/hid-thingm.c and
7 * drivers/usb/misc/usbled.c
Heiner Kallweit6c7ad072016-06-17 21:20:46 +02008 */
9
10#include <linux/hid.h>
11#include <linux/hidraw.h>
12#include <linux/leds.h>
13#include <linux/module.h>
14#include <linux/mutex.h>
15
16#include "hid-ids.h"
17
18enum hidled_report_type {
19 RAW_REQUEST,
20 OUTPUT_REPORT
21};
22
23enum hidled_type {
24 RISO_KAGAKU,
25 DREAM_CHEEKY,
Heiner Kallweit007414e2016-06-21 21:49:29 +020026 THINGM,
Heiner Kallweitde908652016-07-04 21:45:54 +020027 DELCOM,
Heiner Kallweit9d1e0482016-07-04 21:47:52 +020028 LUXAFOR,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020029};
30
31static unsigned const char riso_kagaku_tbl[] = {
32/* R+2G+4B -> riso kagaku color index */
33 [0] = 0, /* black */
34 [1] = 2, /* red */
35 [2] = 1, /* green */
36 [3] = 5, /* yellow */
37 [4] = 3, /* blue */
38 [5] = 6, /* magenta */
39 [6] = 4, /* cyan */
40 [7] = 7 /* white */
41};
42
43#define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)]
44
Heiner Kallweitde908652016-07-04 21:45:54 +020045union delcom_packet {
46 __u8 data[8];
47 struct {
48 __u8 major_cmd;
49 __u8 minor_cmd;
50 __u8 data_lsb;
51 __u8 data_msb;
52 } tx;
53 struct {
54 __u8 cmd;
55 } rx;
56 struct {
57 __le16 family_code;
58 __le16 security_code;
59 __u8 fw_version;
60 } fw;
61};
62
63#define DELCOM_GREEN_LED 0
64#define DELCOM_RED_LED 1
65#define DELCOM_BLUE_LED 2
66
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020067struct hidled_device;
Heiner Kallweit5bc83932016-06-21 21:48:26 +020068struct hidled_rgb;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020069
70struct hidled_config {
71 enum hidled_type type;
72 const char *name;
73 const char *short_name;
74 enum led_brightness max_brightness;
Heiner Kallweit5bc83932016-06-21 21:48:26 +020075 int num_leds;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020076 size_t report_size;
77 enum hidled_report_type report_type;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020078 int (*init)(struct hidled_device *ldev);
79 int (*write)(struct led_classdev *cdev, enum led_brightness br);
80};
81
82struct hidled_led {
83 struct led_classdev cdev;
Heiner Kallweit5bc83932016-06-21 21:48:26 +020084 struct hidled_rgb *rgb;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020085 char name[32];
86};
87
Heiner Kallweit5bc83932016-06-21 21:48:26 +020088struct hidled_rgb {
89 struct hidled_device *ldev;
90 struct hidled_led red;
91 struct hidled_led green;
92 struct hidled_led blue;
93 u8 num;
94};
95
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020096struct hidled_device {
97 const struct hidled_config *config;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +020098 struct hid_device *hdev;
Heiner Kallweit5bc83932016-06-21 21:48:26 +020099 struct hidled_rgb *rgb;
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200100 u8 *buf;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200101 struct mutex lock;
102};
103
104#define MAX_REPORT_SIZE 16
105
106#define to_hidled_led(arg) container_of(arg, struct hidled_led, cdev)
107
108static bool riso_kagaku_switch_green_blue;
109module_param(riso_kagaku_switch_green_blue, bool, S_IRUGO | S_IWUSR);
110MODULE_PARM_DESC(riso_kagaku_switch_green_blue,
111 "switch green and blue RGB component for Riso Kagaku devices");
112
113static int hidled_send(struct hidled_device *ldev, __u8 *buf)
114{
115 int ret;
116
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200117 mutex_lock(&ldev->lock);
118
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200119 /*
120 * buffer provided to hid_hw_raw_request must not be on the stack
121 * and must not be part of a data structure
122 */
123 memcpy(ldev->buf, buf, ldev->config->report_size);
124
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200125 if (ldev->config->report_type == RAW_REQUEST)
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200127 ldev->config->report_size,
128 HID_FEATURE_REPORT,
129 HID_REQ_SET_REPORT);
130 else if (ldev->config->report_type == OUTPUT_REPORT)
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200131 ret = hid_hw_output_report(ldev->hdev, ldev->buf,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200132 ldev->config->report_size);
133 else
134 ret = -EINVAL;
135
136 mutex_unlock(&ldev->lock);
137
138 if (ret < 0)
139 return ret;
140
141 return ret == ldev->config->report_size ? 0 : -EMSGSIZE;
142}
143
Heiner Kallweit43745732016-06-21 21:48:46 +0200144/* reading data is supported for report type RAW_REQUEST only */
145static int hidled_recv(struct hidled_device *ldev, __u8 *buf)
146{
147 int ret;
148
149 if (ldev->config->report_type != RAW_REQUEST)
150 return -EINVAL;
151
Heiner Kallweit43745732016-06-21 21:48:46 +0200152 mutex_lock(&ldev->lock);
153
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200154 memcpy(ldev->buf, buf, ldev->config->report_size);
155
156 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
Heiner Kallweit43745732016-06-21 21:48:46 +0200157 ldev->config->report_size,
158 HID_FEATURE_REPORT,
159 HID_REQ_SET_REPORT);
160 if (ret < 0)
161 goto err;
162
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200163 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
Heiner Kallweit43745732016-06-21 21:48:46 +0200164 ldev->config->report_size,
165 HID_FEATURE_REPORT,
166 HID_REQ_GET_REPORT);
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200167
168 memcpy(buf, ldev->buf, ldev->config->report_size);
Heiner Kallweit43745732016-06-21 21:48:46 +0200169err:
170 mutex_unlock(&ldev->lock);
171
172 return ret < 0 ? ret : 0;
173}
174
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200175static u8 riso_kagaku_index(struct hidled_rgb *rgb)
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200176{
177 enum led_brightness r, g, b;
178
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200179 r = rgb->red.cdev.brightness;
180 g = rgb->green.cdev.brightness;
181 b = rgb->blue.cdev.brightness;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200182
183 if (riso_kagaku_switch_green_blue)
184 return RISO_KAGAKU_IX(r, b, g);
185 else
186 return RISO_KAGAKU_IX(r, g, b);
187}
188
189static int riso_kagaku_write(struct led_classdev *cdev, enum led_brightness br)
190{
191 struct hidled_led *led = to_hidled_led(cdev);
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200192 struct hidled_rgb *rgb = led->rgb;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200193 __u8 buf[MAX_REPORT_SIZE] = {};
194
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200195 buf[1] = riso_kagaku_index(rgb);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200196
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200197 return hidled_send(rgb->ldev, buf);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200198}
199
200static int dream_cheeky_write(struct led_classdev *cdev, enum led_brightness br)
201{
202 struct hidled_led *led = to_hidled_led(cdev);
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200203 struct hidled_rgb *rgb = led->rgb;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200204 __u8 buf[MAX_REPORT_SIZE] = {};
205
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200206 buf[1] = rgb->red.cdev.brightness;
207 buf[2] = rgb->green.cdev.brightness;
208 buf[3] = rgb->blue.cdev.brightness;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200209 buf[7] = 0x1a;
210 buf[8] = 0x05;
211
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200212 return hidled_send(rgb->ldev, buf);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200213}
214
215static int dream_cheeky_init(struct hidled_device *ldev)
216{
217 __u8 buf[MAX_REPORT_SIZE] = {};
218
219 /* Dream Cheeky magic */
220 buf[1] = 0x1f;
221 buf[2] = 0x02;
222 buf[4] = 0x5f;
223 buf[7] = 0x1a;
224 buf[8] = 0x03;
225
226 return hidled_send(ldev, buf);
227}
228
Heiner Kallweit007414e2016-06-21 21:49:29 +0200229static int _thingm_write(struct led_classdev *cdev, enum led_brightness br,
230 u8 offset)
231{
232 struct hidled_led *led = to_hidled_led(cdev);
Heiner Kallweit34d98102016-07-03 17:33:04 +0200233 __u8 buf[MAX_REPORT_SIZE] = { 1, 'c' };
Heiner Kallweit007414e2016-06-21 21:49:29 +0200234
235 buf[2] = led->rgb->red.cdev.brightness;
236 buf[3] = led->rgb->green.cdev.brightness;
237 buf[4] = led->rgb->blue.cdev.brightness;
238 buf[7] = led->rgb->num + offset;
239
240 return hidled_send(led->rgb->ldev, buf);
241}
242
243static int thingm_write_v1(struct led_classdev *cdev, enum led_brightness br)
244{
245 return _thingm_write(cdev, br, 0);
246}
247
248static int thingm_write(struct led_classdev *cdev, enum led_brightness br)
249{
250 return _thingm_write(cdev, br, 1);
251}
252
253static const struct hidled_config hidled_config_thingm_v1 = {
254 .name = "ThingM blink(1) v1",
255 .short_name = "thingm",
256 .max_brightness = 255,
257 .num_leds = 1,
258 .report_size = 9,
259 .report_type = RAW_REQUEST,
Heiner Kallweit007414e2016-06-21 21:49:29 +0200260 .write = thingm_write_v1,
261};
262
263static int thingm_init(struct hidled_device *ldev)
264{
Heiner Kallweit34d98102016-07-03 17:33:04 +0200265 __u8 buf[MAX_REPORT_SIZE] = { 1, 'v' };
Heiner Kallweit007414e2016-06-21 21:49:29 +0200266 int ret;
267
268 ret = hidled_recv(ldev, buf);
269 if (ret)
270 return ret;
271
272 /* Check for firmware major version 1 */
273 if (buf[3] == '1')
274 ldev->config = &hidled_config_thingm_v1;
275
276 return 0;
277}
278
Heiner Kallweitde908652016-07-04 21:45:54 +0200279static inline int delcom_get_lednum(const struct hidled_led *led)
280{
281 if (led == &led->rgb->red)
282 return DELCOM_RED_LED;
283 else if (led == &led->rgb->green)
284 return DELCOM_GREEN_LED;
285 else
286 return DELCOM_BLUE_LED;
287}
288
289static int delcom_enable_led(struct hidled_led *led)
290{
291 union delcom_packet dp = { .tx.major_cmd = 101, .tx.minor_cmd = 12 };
292
293 dp.tx.data_lsb = 1 << delcom_get_lednum(led);
294 dp.tx.data_msb = 0;
295
296 return hidled_send(led->rgb->ldev, dp.data);
297}
298
299static int delcom_set_pwm(struct hidled_led *led)
300{
301 union delcom_packet dp = { .tx.major_cmd = 101, .tx.minor_cmd = 34 };
302
303 dp.tx.data_lsb = delcom_get_lednum(led);
304 dp.tx.data_msb = led->cdev.brightness;
305
306 return hidled_send(led->rgb->ldev, dp.data);
307}
308
309static int delcom_write(struct led_classdev *cdev, enum led_brightness br)
310{
311 struct hidled_led *led = to_hidled_led(cdev);
312 int ret;
313
314 /*
315 * enable LED
316 * We can't do this in the init function already because the device
317 * is internally reset later.
318 */
319 ret = delcom_enable_led(led);
320 if (ret)
321 return ret;
322
323 return delcom_set_pwm(led);
324}
325
326static int delcom_init(struct hidled_device *ldev)
327{
328 union delcom_packet dp = { .rx.cmd = 104 };
329 int ret;
330
331 ret = hidled_recv(ldev, dp.data);
332 if (ret)
333 return ret;
334 /*
335 * Several Delcom devices share the same USB VID/PID
336 * Check for family id 2 for Visual Signal Indicator
337 */
Heiner Kallweitf4c109b2016-07-08 06:58:37 +0200338 return le16_to_cpu(dp.fw.family_code) == 2 ? 0 : -ENODEV;
Heiner Kallweitde908652016-07-04 21:45:54 +0200339}
340
Heiner Kallweit9d1e0482016-07-04 21:47:52 +0200341static int luxafor_write(struct led_classdev *cdev, enum led_brightness br)
342{
343 struct hidled_led *led = to_hidled_led(cdev);
344 __u8 buf[MAX_REPORT_SIZE] = { [1] = 1 };
345
346 buf[2] = led->rgb->num + 1;
347 buf[3] = led->rgb->red.cdev.brightness;
348 buf[4] = led->rgb->green.cdev.brightness;
349 buf[5] = led->rgb->blue.cdev.brightness;
350
351 return hidled_send(led->rgb->ldev, buf);
352}
353
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200354static const struct hidled_config hidled_configs[] = {
355 {
356 .type = RISO_KAGAKU,
357 .name = "Riso Kagaku Webmail Notifier",
358 .short_name = "riso_kagaku",
359 .max_brightness = 1,
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200360 .num_leds = 1,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200361 .report_size = 6,
362 .report_type = OUTPUT_REPORT,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200363 .write = riso_kagaku_write,
364 },
365 {
366 .type = DREAM_CHEEKY,
367 .name = "Dream Cheeky Webmail Notifier",
368 .short_name = "dream_cheeky",
369 .max_brightness = 31,
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200370 .num_leds = 1,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200371 .report_size = 9,
372 .report_type = RAW_REQUEST,
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200373 .init = dream_cheeky_init,
374 .write = dream_cheeky_write,
375 },
Heiner Kallweit007414e2016-06-21 21:49:29 +0200376 {
377 .type = THINGM,
378 .name = "ThingM blink(1)",
379 .short_name = "thingm",
380 .max_brightness = 255,
381 .num_leds = 2,
382 .report_size = 9,
383 .report_type = RAW_REQUEST,
Heiner Kallweit007414e2016-06-21 21:49:29 +0200384 .init = thingm_init,
385 .write = thingm_write,
386 },
Heiner Kallweitde908652016-07-04 21:45:54 +0200387 {
388 .type = DELCOM,
389 .name = "Delcom Visual Signal Indicator G2",
390 .short_name = "delcom",
391 .max_brightness = 100,
392 .num_leds = 1,
393 .report_size = 8,
394 .report_type = RAW_REQUEST,
395 .init = delcom_init,
396 .write = delcom_write,
397 },
Heiner Kallweit9d1e0482016-07-04 21:47:52 +0200398 {
399 .type = LUXAFOR,
400 .name = "Greynut Luxafor",
401 .short_name = "luxafor",
402 .max_brightness = 255,
403 .num_leds = 6,
404 .report_size = 9,
405 .report_type = OUTPUT_REPORT,
406 .write = luxafor_write,
407 },
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200408};
409
410static int hidled_init_led(struct hidled_led *led, const char *color_name,
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200411 struct hidled_rgb *rgb, unsigned int minor)
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200412{
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200413 const struct hidled_config *config = rgb->ldev->config;
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200414
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200415 if (config->num_leds > 1)
416 snprintf(led->name, sizeof(led->name), "%s%u:%s:led%u",
417 config->short_name, minor, color_name, rgb->num);
418 else
419 snprintf(led->name, sizeof(led->name), "%s%u:%s",
420 config->short_name, minor, color_name);
421 led->cdev.name = led->name;
422 led->cdev.max_brightness = config->max_brightness;
423 led->cdev.brightness_set_blocking = config->write;
424 led->cdev.flags = LED_HW_PLUGGABLE;
425 led->rgb = rgb;
426
427 return devm_led_classdev_register(&rgb->ldev->hdev->dev, &led->cdev);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200428}
429
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200430static int hidled_init_rgb(struct hidled_rgb *rgb, unsigned int minor)
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200431{
432 int ret;
433
434 /* Register the red diode */
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200435 ret = hidled_init_led(&rgb->red, "red", rgb, minor);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200436 if (ret)
437 return ret;
438
439 /* Register the green diode */
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200440 ret = hidled_init_led(&rgb->green, "green", rgb, minor);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200441 if (ret)
442 return ret;
443
444 /* Register the blue diode */
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200445 return hidled_init_led(&rgb->blue, "blue", rgb, minor);
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200446}
447
448static int hidled_probe(struct hid_device *hdev, const struct hid_device_id *id)
449{
450 struct hidled_device *ldev;
451 unsigned int minor;
452 int ret, i;
453
454 ldev = devm_kzalloc(&hdev->dev, sizeof(*ldev), GFP_KERNEL);
455 if (!ldev)
456 return -ENOMEM;
457
Heiner Kallweit3d1355b2016-10-03 21:21:42 +0200458 ldev->buf = devm_kmalloc(&hdev->dev, MAX_REPORT_SIZE, GFP_KERNEL);
459 if (!ldev->buf)
460 return -ENOMEM;
461
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200462 ret = hid_parse(hdev);
463 if (ret)
464 return ret;
465
466 ldev->hdev = hdev;
467 mutex_init(&ldev->lock);
468
469 for (i = 0; !ldev->config && i < ARRAY_SIZE(hidled_configs); i++)
470 if (hidled_configs[i].type == id->driver_data)
471 ldev->config = &hidled_configs[i];
472
473 if (!ldev->config)
474 return -EINVAL;
475
476 if (ldev->config->init) {
477 ret = ldev->config->init(ldev);
478 if (ret)
479 return ret;
480 }
481
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200482 ldev->rgb = devm_kcalloc(&hdev->dev, ldev->config->num_leds,
483 sizeof(struct hidled_rgb), GFP_KERNEL);
484 if (!ldev->rgb)
485 return -ENOMEM;
486
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200487 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
488 if (ret)
489 return ret;
490
491 minor = ((struct hidraw *) hdev->hidraw)->minor;
492
Heiner Kallweit5bc83932016-06-21 21:48:26 +0200493 for (i = 0; i < ldev->config->num_leds; i++) {
494 ldev->rgb[i].ldev = ldev;
495 ldev->rgb[i].num = i;
496 ret = hidled_init_rgb(&ldev->rgb[i], minor);
497 if (ret) {
498 hid_hw_stop(hdev);
499 return ret;
500 }
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200501 }
502
503 hid_info(hdev, "%s initialized\n", ldev->config->name);
504
505 return 0;
506}
507
508static const struct hid_device_id hidled_table[] = {
509 { HID_USB_DEVICE(USB_VENDOR_ID_RISO_KAGAKU,
510 USB_DEVICE_ID_RI_KA_WEBMAIL), .driver_data = RISO_KAGAKU },
511 { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY,
512 USB_DEVICE_ID_DREAM_CHEEKY_WN), .driver_data = DREAM_CHEEKY },
513 { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY,
514 USB_DEVICE_ID_DREAM_CHEEKY_FA), .driver_data = DREAM_CHEEKY },
Heiner Kallweit007414e2016-06-21 21:49:29 +0200515 { HID_USB_DEVICE(USB_VENDOR_ID_THINGM,
516 USB_DEVICE_ID_BLINK1), .driver_data = THINGM },
Heiner Kallweitde908652016-07-04 21:45:54 +0200517 { HID_USB_DEVICE(USB_VENDOR_ID_DELCOM,
518 USB_DEVICE_ID_DELCOM_VISUAL_IND), .driver_data = DELCOM },
Heiner Kallweit9d1e0482016-07-04 21:47:52 +0200519 { HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP,
520 USB_DEVICE_ID_LUXAFOR), .driver_data = LUXAFOR },
Heiner Kallweit6c7ad072016-06-17 21:20:46 +0200521 { }
522};
523MODULE_DEVICE_TABLE(hid, hidled_table);
524
525static struct hid_driver hidled_driver = {
526 .name = "hid-led",
527 .probe = hidled_probe,
528 .id_table = hidled_table,
529};
530
531module_hid_driver(hidled_driver);
532
533MODULE_LICENSE("GPL");
534MODULE_AUTHOR("Heiner Kallweit <hkallweit1@gmail.com>");
535MODULE_DESCRIPTION("Simple USB RGB LED driver");