Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272019
b: refs/heads/master
c: abec04d
h: refs/heads/master
i:
  272017: fc809de
  272015: a28e0aa
v: v3
  • Loading branch information
Andy Ross authored and Matthew Garrett committed Oct 24, 2011
1 parent 8642c7e commit 4092bd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7500eeb08a179e61a4219288c21407d63d1e9c64
refs/heads/master: abec04dbc3dbe7577ccd9d5d6e188aa153d464eb
8 changes: 7 additions & 1 deletion trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static int wlan_status = 1;
static int bluetooth_status = 1;
static int wimax_status = -1;
static int wwan_status = -1;
static int als_status;

module_param(wlan_status, int, 0444);
MODULE_PARM_DESC(wlan_status, "Set the wireless status on boot "
Expand All @@ -106,6 +107,11 @@ MODULE_PARM_DESC(wwan_status, "Set the wireless status on boot "
"(0 = disabled, 1 = enabled, -1 = don't do anything). "
"default is 1");

module_param(als_status, int, 0444);
MODULE_PARM_DESC(als_status, "Set the ALS status on boot "
"(0 = disabled, 1 = enabled). "
"default is 0");

/*
* Some events we use, same for all Asus
*/
Expand Down Expand Up @@ -1472,7 +1478,7 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)
asus->ledd_status = 0xFFF;

/* Set initial values of light sensor and level */
asus->light_switch = 0; /* Default to light sensor disabled */
asus->light_switch = !!als_status;
asus->light_level = 5; /* level 5 for sensor sensitivity */

if (asus->is_pega_lucid) {
Expand Down

0 comments on commit 4092bd1

Please sign in to comment.