HID: logitech: allow the DJ device to request the unifying name
authorBenjamin Tissoires <[email protected]>
Tue, 30 Sep 2014 17:18:30 +0000 (13:18 -0400)
committerJiri Kosina <[email protected]>
Wed, 29 Oct 2014 09:51:40 +0000 (10:51 +0100)
commit33797820af98cde5c7cee00d00f0d8e255ea199f
tree2d85919e568b520986c52fed4af86d077f755bf9
parent925f0f3ed24f98b40c28627e74ff3e7f9d1e28bc
HID: logitech: allow the DJ device to request the unifying name

The names of the DJ devices are stored in the receiver. These names
can be retrieved through a HID++ command. However, the protocol says
that you have to ask the receiver for that, not the device iteself.

Introduce a special case in the DJ handling where a device can request
its unifying name, and when such a name is given, forward it also to
the corresponding device.

On the HID++ side, the receiver talks only HID++ 1.0, so we need to
implement this part of the protocol in the module.

Signed-off-by: Benjamin Tissoires <[email protected]>
Tested-by: Andrew de los Reyes <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-logitech-hidpp.c