Defining led's triggers as separate class
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.
Thanks for your suggestions,
Rodolfo
Signature · 5 lines
GNU/Linux Solutions e-mail: [email protected] Linux Device Driver [email protected] Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
Quoted 10 lines · Rodolfo Giometti
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.cbut as regulator I can not.
Well, and then user does echo 'hddactivity' > trigger, and your voltage regulator will have some fun?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html