Skip to contentSkip to conversation

HID: hid-led: add support for Delcom Visual Signal Indicator G2

PATCH New Heiner Kallweit 1 participant 1 message Jul 4, 2016 HID

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 HID: hid-led: add support for Delcom Visual Signal Indicator G2

Add support for the HID-compliant Delcom Visual Signal Indicator generation 2 devices.

Successfully tested with part no 904000 from the family of these devices.

---
v2:
- add device to HID_LED help info in Kconfig
- factor out enabling a led to delcom_enable_led
- set only brightness of affected led in delcom_write

---
 drivers/hid/Kconfig    |  1 +
 drivers/hid/hid-core.c |  1 +
 drivers/hid/hid-ids.h  |  3 ++
 drivers/hid/hid-led.c  | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 103 insertions(+)
drivers/hid/Kconfig +1 -0
index c5de17c..74f8e37 100644
@@ -397,6 +397,7 @@ config HID_LED
 	- Riso Kagaku Webmail Notifier
 	- Dream Cheeky Webmail Notifier and Friends Alert
 	- ThingM blink(1)
+	- Delcom Visual Signal Indicator Generation 2
 
 	To compile this driver as a module, choose M here: the
 	module will be called hid-led.
drivers/hid/hid-core.c +1 -0
index efd8f8c..0777ff2 100644
@@ -1878,6 +1878,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_3) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_4) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_DELCOM, USB_DEVICE_ID_DELCOM_VISUAL_IND) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0006) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0011) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, USB_DEVICE_ID_DREAM_CHEEKY_WN) },
drivers/hid/hid-ids.h +3 -0
index 191c981..f1bd6f6 100644
@@ -299,6 +299,9 @@
 #define USB_VENDOR_ID_DEALEXTREAME	0x10c5
 #define USB_DEVICE_ID_DEALEXTREAME_RADIO_SI4701	0x819a
 
+#define USB_VENDOR_ID_DELCOM		0x0fc5
+#define USB_DEVICE_ID_DELCOM_VISUAL_IND	0xb080
+
 #define USB_VENDOR_ID_DELORME		0x1163
 #define USB_DEVICE_ID_DELORME_EARTHMATE	0x0100
 #define USB_DEVICE_ID_DELORME_EM_LT20	0x0200
drivers/hid/hid-led.c +98 -0

128 lines not on this page · raw message

Signature · 1 line
2.9.0