Re: [PATCH 1/2] HID: hid-lg4ff add support for G27 LEDs

From: Mark Brown
Date: Mon Mar 12 2012 - 14:32:40 EST


On Mon, Mar 12, 2012 at 02:19:25PM -0400, simon@xxxxxxxxxxxxx wrote:
> > On Mon, Mar 12, 2012 at 02:04:14PM -0400, simon@xxxxxxxxxxxxx wrote:

> >> At the moment you'd just drive the LEDs simply, ie:
> >> $ echo 31 > /sys/bus/hid/devices/.../leds

> > Shouldn't this be using the LED subsystem the kernel already has?

> The LED subsystem appears to be aim at controller chips (ie. lp3944) which
> are connected to a bus (I2C) in a generalised form. I guess people might
> be doing 'blinken light' type systems.

Not really, it's aimed at supporting LEDs in general. Obviously most of
the drivers are for specific controller chips which makes them more
visible but there's also things like the triggers.

> The LEDs on the G27 are very much more specific, mounted on the yoke of
> the gaming wheel.

> Would this require the use/complexity of the LED subsystem?

Well, it'd mean that applications that know how to drive LEDs will be
able to use the LEDs on this wheel with less per device knowledge which
seems like a useful thing and if someone wants to remap a LED to "new
mail" or whatever that'll be easier (nethack has the mailer daemon
deliver a scroll of mail!).

Attachment: signature.asc
Description: Digital signature