Skip to content

Commit

Permalink
asus-laptop: set initial lcd state
Browse files Browse the repository at this point in the history
There is no way to find the initial lcd state. A quick workaround
is to set it "on" by default. Anyway this feature is scheduled for removal.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
  • Loading branch information
Corentin Chary authored and Corentin Chary committed Feb 28, 2010
1 parent 7574712 commit 47ee0e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,8 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)
!acpi_check_handle(asus->handle, METHOD_GPS_OFF, NULL) &&
!acpi_check_handle(asus->handle, METHOD_GPS_STATUS, NULL))
asus_gps_switch(asus, 1);

asus->lcd_state = 1; /* LCD should be on when the module load */
return result;
}

Expand Down

0 comments on commit 47ee0e9

Please sign in to comment.