Re: Defining led's triggers as separate class

From: Pavel Machek
Date: Sat Nov 21 2009 - 14:13:32 EST


On Wed 2009-11-11 19:07:18, Rodolfo Giometti wrote:
> Hello,
>
> it could be sane moving triggers core from leds directory and defining
> them as a separate class in order to be used by other subsystem?
>
> For instance I have a voltage regulator (which should be logically
> implemented into current regulator class) who must be enabled/disabled
> when the LCD is turned on/off... if the driver was implemented as led
> class then I can use the trigger ledtrig-backlight.c but as regulator
> I can not.

Well, and then user does echo 'hddactivity' > trigger, and your
voltage regulator will have some fun?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/