LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Len Brown <lenb@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] Rationalise ACPI backlight implementation
Date: Sun, 27 Jan 2008 02:06:07 +0000 [thread overview]
Message-ID: <20080127020607.GA10173@srcf.ucam.org> (raw)
In-Reply-To: <200801241644.49114.lenb@kernel.org>
On Thu, Jan 24, 2008 at 04:44:48PM -0500, Len Brown wrote:
> On Tuesday 25 December 2007 21:03, Matthew Garrett wrote:
> > The sysfs backlight class provides no mechanism for querying the
> > acceptable brightness for a backlight. The ACPI spec states that values
> > are only valid if they are reported as available by the firmware. Since
> > we can't provide that information to userspace, instead collapse the
> > range to the number of actual values that can be set.
> >
> > Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
>
> I wish we did this in the first place.
> But doing it now is an API change -- since
> with the old way 100 always meant 100% brightness, yes?
Yes.
> so my concern is that if we change what "10" means, somebody like akpm
> with an existing script gets grumpy.
I don't buy that argument. Assuming that the values will always result
in an identical brightness is making incorrect assumptions about the
API. For example, consider the case where a bug means that only half the
hardware's available brightness levels are exposed. Fixing that bug
would change the meaning of the numbers, but it's not an API change in
any real way. Anyone using the backlight class should check the
maximum_brightness field before deciding what range of values to use.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2008-01-27 2:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 2:03 Matthew Garrett
2008-01-14 1:51 ` Matthew Garrett
2008-01-22 8:33 ` Zhang Rui
2008-01-22 11:46 ` Matthew Garrett
2008-01-22 12:39 ` Henrique de Moraes Holschuh
2008-01-24 21:44 ` Len Brown
2008-01-27 2:06 ` Matthew Garrett [this message]
2008-01-27 6:00 ` Andrew Morton
2008-01-28 1:25 ` Matthew Garrett
2008-01-28 5:10 ` Andrew Morton
2008-01-28 5:28 ` Matthew Garrett
2008-01-28 15:51 ` Henrique de Moraes Holschuh
2008-02-02 3:46 ` Len Brown
2008-02-02 11:30 ` Henrique de Moraes Holschuh
2008-02-06 10:09 ` Romano Giannetti
2008-02-02 3:43 ` Len Brown
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=20080127020607.GA10173@srcf.ucam.org \
--to=mjg59@srcf.ucam.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH] Rationalise ACPI backlight implementation' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).