Consistant naming for LED class USB devices?

From
<hidden>
Date
2013-02-14 22:52:50
Hi,
I'm after naming suggestions for USB devices which use the LED class.

On one gaming wheel (Steelseries SWR-S1) I was able to use the serial
number, however my other wheel (Logitech G27) does not have a unique
serial (it reports '0').

The G27 (hid-lg4ff) driver's naming changes each time the wheel is
unplugged/plugged.

It currently uses
--
snprintf(name, name_sz, "%s::RPM%d", dev_name(&hid->dev), j+1);
--
ie. "0003:046D:C294.0009::RPM1",  the '0009' will change each time.


In the absence of a serial number, is there another method I could use
which would allow multiple G27's to be connected to a system and still
allow unique (but consistant) naming?

Cheers,
Simon


Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help