public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Richard Purdie <rpurdie@rpsys.net>, linux-kernel@vger.kernel.org
Subject: Re: Defining led's triggers as separate class
Date: Sat, 21 Nov 2009 20:13:19 +0100	[thread overview]
Message-ID: <20091121191319.GD2444@ucw.cz> (raw)
In-Reply-To: <20091111180718.GH3495@enneenne.com>

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

      reply	other threads:[~2009-11-21 19:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11 18:07 Defining led's triggers as separate class Rodolfo Giometti
2009-11-21 19:13 ` Pavel Machek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091121191319.GD2444@ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox