Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272010
b: refs/heads/master
c: 923de84
h: refs/heads/master
v: v3
  • Loading branch information
Ike Panhc authored and Matthew Garrett committed Oct 24, 2011
1 parent 695a7d8 commit 5490192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 2be1dc215bd34faf4895e4396dab924a24e10944
refs/heads/master: 923de84ab07cfcee75946191f17a6e7fb98e3ac8
7 changes: 3 additions & 4 deletions trunk/drivers/platform/x86/ideapad-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,8 @@ static struct rfkill_ops ideapad_rfk_ops = {
.set_block = ideapad_rfk_set,
};

static void ideapad_sync_rfk_state(struct acpi_device *adevice)
static void ideapad_sync_rfk_state(struct ideapad_private *priv)
{
struct ideapad_private *priv = dev_get_drvdata(&adevice->dev);
unsigned long hw_blocked;
int i;

Expand Down Expand Up @@ -577,7 +576,7 @@ static int __devinit ideapad_acpi_add(struct acpi_device *adevice)
else
priv->rfk[i] = NULL;
}
ideapad_sync_rfk_state(adevice);
ideapad_sync_rfk_state(priv);

if (!acpi_video_backlight_support()) {
ret = ideapad_backlight_init(priv);
Expand Down Expand Up @@ -630,7 +629,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
if (test_bit(vpc_bit, &vpc1)) {
switch (vpc_bit) {
case 9:
ideapad_sync_rfk_state(adevice);
ideapad_sync_rfk_state(priv);
break;
case 4:
ideapad_backlight_notify_brightness(priv);
Expand Down

0 comments on commit 5490192

Please sign in to comment.