Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 832d9950 authored by Corentin Chary's avatar Corentin Chary Committed by Len Brown
Browse files

asus-laptop: fix light sens init



Fix a stupid light sens detection bug.

Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e539c2f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);