Skip to content

Commit

Permalink
asus-laptop: fix light sens init
Browse files Browse the repository at this point in the history
Fix a stupid light sens detection bug.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Corentin Chary authored and Len Brown committed May 10, 2007
1 parent e539c2f commit 832d995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 832d995

Please sign in to comment.