From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Richard Purdie <rpurdie@rpsys.net>
Cc: "Márton Németh" <nm127@freemail.hu>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] LED updates
Date: Sun, 16 Mar 2008 15:18:40 -0300 [thread overview]
Message-ID: <20080316181840.GG19825@khazad-dum.debian.net> (raw)
In-Reply-To: <1202422388.9519.123.camel@dax.rpnet.com>
On Thu, 07 Feb 2008, Richard Purdie wrote:
> > > Richard Purdie:
> > > leds: Standardise LED naming scheme
> >
> > This one causes trouble (at least on 2.6.23 -- I backported the patch) due
> > to the 20-byte length limit on sysfs names. I had to use "tp::<somecrap>"
> > instead of "thinkpad::<somecrap>" to name LEDs, and still had to reduce
> > ultrabase_battery to ultrabase_batt :-)
> >
> > Anyway, IMHO, the LED function should come first, and we should not even
> > need the led driver name anywhere. In case of clashes in the class sysfs
> > dir, just tack a .# to the end or somesuch. The device the LED is tied to
> > already differentiates them. That would save a lot of chars for something
> > much more useful (the function).
>
> Ouch, I'm looking into this. I wish I'd known about it earlier. I agree
> function is more important but didn't want to break the existing
> convention. I guess this limitation comes from the kobjects involved...
Richard, any ideas for that? It *is* still time to change this for 2.6.25,
if required. If you changed it once already, changing it again won't cause
further damage.
I need to know if the current naming scheme will hold or not, I do NOT want
an ABI issue on thinkpad-acpi, and I know for a fact at least Debian will
want to use the thinkpad-acpi LED interface as soon as I deploy it. I want
to send the thinkpad-acpi LED interface patches to the users as soon as
possible.
Sincerely? I think you should make it <function>:[color][.instance] and
drop device name compleley, ASAP.
I will write the patches for mainline and your for-mm branch, if that would
speed up things. But I need to know what you have decided, first.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2008-03-16 18:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-07 10:35 Richard Purdie
2008-02-07 21:38 ` Henrique de Moraes Holschuh
2008-02-07 22:13 ` Richard Purdie
2008-02-07 23:23 ` [PATCH] leds: disable triggers on brightness set Henrique de Moraes Holschuh
2008-02-10 11:52 ` Németh Márton
2008-02-17 23:30 ` Richard Purdie
2008-02-18 1:59 ` Henrique de Moraes Holschuh
2008-02-08 7:03 ` [GIT PULL] LED updates Németh Márton
2008-02-08 11:20 ` Henrique de Moraes Holschuh
2008-02-10 11:52 ` Németh Márton
2008-03-16 18:18 ` Henrique de Moraes Holschuh [this message]
2008-03-16 19:29 ` Richard Purdie
2008-03-16 19:48 ` Henrique de Moraes Holschuh
2008-03-17 3:34 ` LED naming standard for LED class Henrique de Moraes Holschuh
2008-03-17 9:51 ` Richard Purdie
2008-03-18 3:35 ` Henrique de Moraes Holschuh
2008-03-18 4:55 ` Henrique de Moraes Holschuh
-- strict thread matches above, loose matches on Subject: below --
2007-10-11 21:38 [GIT PULL] LED updates Richard Purdie
2007-07-16 8:39 Richard Purdie
2007-02-15 22:18 Richard Purdie
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=20080316181840.GG19825@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=nm127@freemail.hu \
--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
all inboxes | Powered by JetHome®