summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2007-05-06 14:47:29 +0200
committerLen Brown <len.brown@intel.com>2007-05-10 02:40:36 -0400
commit832d995029466e12aef66187bc9103487bf7be9f (patch)
treedd9c3925adf346967465e23eb319481dbec635c2 /drivers/misc
parente539c2f69ca17f71dd41ba89cde67612a1326c57 (diff)
asus-laptop: fix light sens init
Fix a stupid light sens detection bug. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/asus-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c
index f1bab721ff5..b39419cc298 100644
--- a/drivers/misc/asus-laptop.c
+++ b/drivers/misc/asus-laptop.c
@@ -936,7 +936,7 @@ static int asus_hotk_get_info(void)
/* There is a lot of models with "ALSL", but a few get
a real light sens, so we need to check it. */
- if (ASUS_HANDLE_INIT(ls_switch))
+ if (!ASUS_HANDLE_INIT(ls_switch))
ASUS_HANDLE_INIT(ls_level);
ASUS_HANDLE_INIT(gps_on);