Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145064
b: refs/heads/master
c: 978605c
h: refs/heads/master
v: v3
  • Loading branch information
Alan Jenkins authored and Len Brown committed May 14, 2009
1 parent b41501b commit 64f0fae
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: 64b86b6583db832b28bb54575e32b9e2a1a7d84f
refs/heads/master: 978605c4fd8e7470f225eec7b5aab69d8796afcc
8 changes: 7 additions & 1 deletion trunk/drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ enum { KE_KEY, KE_END };
static struct key_entry eeepc_keymap[] = {
/* Sleep already handled via generic ACPI code */
{KE_KEY, 0x10, KEY_WLAN },
{KE_KEY, 0x11, KEY_WLAN },
{KE_KEY, 0x12, KEY_PROG1 },
{KE_KEY, 0x13, KEY_MUTE },
{KE_KEY, 0x14, KEY_VOLUMEDOWN },
Expand Down Expand Up @@ -528,6 +529,7 @@ static int notify_brn(void)

static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)
{
enum rfkill_state state;
struct pci_dev *dev;
struct pci_bus *bus = pci_find_bus(0, 1);

Expand All @@ -539,7 +541,9 @@ static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)
return;
}

if (get_acpi(CM_ASL_WLAN) == 1) {
eeepc_wlan_rfkill_state(ehotk->eeepc_wlan_rfkill, &state);

if (state == RFKILL_STATE_UNBLOCKED) {
dev = pci_get_slot(bus, 0);
if (dev) {
/* Device already present */
Expand All @@ -559,6 +563,8 @@ static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)
pci_dev_put(dev);
}
}

rfkill_force_state(ehotk->eeepc_wlan_rfkill, state);
}

static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data)
Expand Down

0 comments on commit 64f0fae

Please sign in to comment.