Consistant naming for LED class USB devices?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No word from 'linux-input' so cross posting to 'linux-usb',
Simon

--------------------------------------------------------------------------

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




--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux