All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: corentincj@iksaif.net
Cc: linux-acpi@vger.kernel.org, acpi4asus-user@lists.sourceforge.net
Subject: Re: [patch 4/7] asus-laptop: add backlight support
Date: Fri, 26 Jan 2007 02:46:21 -0500	[thread overview]
Message-ID: <200701260246.21515.lenb@kernel.org> (raw)
In-Reply-To: <200701251254.50198.corentincj@iksaif.net>

On Thursday 25 January 2007 06:54, Corentin CHARY wrote:
> Add backlight support using backlight class. We now change the brightness
> *and toggle the backlight !* via /sys/class/backlight/asus-laptop/ .
> 
> If the user switch the backlight using the keyboard, asus_hotk_notify looks for
> ATKD_LCD_OFF and ATKD_LCD_ON events, and store the right state into hotk->status
> and bd->props->power .
> 
> 
> Signed-off-by: Corentin Chary <corentincj@iksaif.net>
>  Kconfig       |    1
>  asus-laptop.c |  181 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-

> diff -Naur a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> --- a/drivers/misc/Kconfig	2007-01-21 15:29:27.000000000 +0100
> +++ b/drivers/misc/Kconfig	2007-01-21 15:34:26.000000000 +0100
> @@ -75,6 +75,7 @@
>          depends on ACPI
>  	depends on EXPERIMENTAL && !ASUS_ACPI
>  	select LEDS_CLASS
> +	select BACKLIGHT_CLASS_DEVICE

wups, my message about LED  CLASS was garbled.
What I should have written is:

Both of these select's should be "depends on"
select is generally considered evil and should be avoided if at all possible.

>          ---help---
>  	  This is the new Linux driver for Asus laptops. It may also support some
>  	  MEDION, JVC or VICTOR laptops. It makes all the extra buttons generate
> 

  reply	other threads:[~2007-01-26  7:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 11:54 [patch 4/7] asus-laptop: add backlight support Corentin CHARY
2007-01-26  7:46 ` Len Brown [this message]
2007-01-26  9:49   ` Corentin CHARY
2007-01-26 13:04 ` Corentin CHARY

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=200701260246.21515.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=acpi4asus-user@lists.sourceforge.net \
    --cc=corentincj@iksaif.net \
    --cc=linux-acpi@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.