From: Corentin Chary Date: Sun, 6 May 2007 12:47:29 +0000 (+0200) Subject: asus-laptop: fix light sens init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=832d995029466e12aef66187bc9103487bf7be9f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git asus-laptop: fix light sens init Fix a stupid light sens detection bug. Signed-off-by: Corentin Chary Signed-off-by: Len Brown --- diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index f1bab721ff55..b39419cc2983 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);