asus-laptop: fix light sens init
authorCorentin Chary <corentincj@iksaif.net>
Sun, 6 May 2007 12:47:29 +0000 (14:47 +0200)
committerLen Brown <len.brown@intel.com>
Thu, 10 May 2007 06:40:36 +0000 (02:40 -0400)
Fix a stupid light sens detection bug.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/asus-laptop.c

index f1bab721ff55d9a0c5eedc6c587f6716c7f47b53..b39419cc29836ed29f2268a0371a90c6f0d15c39 100644 (file)
@@ -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);