public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Defining led's triggers as separate class
@ 2009-11-11 18:07 Rodolfo Giometti
  2009-11-21 19:13 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Rodolfo Giometti @ 2009-11-11 18:07 UTC (permalink / raw)
  To: Richard Purdie; +Cc: linux-kernel

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

-- 

GNU/Linux Solutions                  e-mail: giometti@enneenne.com
Linux Device Driver                          giometti@linux.it
Embedded Systems                     phone:  +39 349 2432127
UNIX programming                     skype:  rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Defining led's triggers as separate class
  2009-11-11 18:07 Defining led's triggers as separate class Rodolfo Giometti
@ 2009-11-21 19:13 ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2009-11-21 19:13 UTC (permalink / raw)
  To: Richard Purdie, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-21 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11 18:07 Defining led's triggers as separate class Rodolfo Giometti
2009-11-21 19:13 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox