Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141950
b: refs/heads/master
c: c9f1e6f
h: refs/heads/master
v: v3
  • Loading branch information
Mattia Dongili authored and Len Brown committed Mar 27, 2009
1 parent d6fb9fa commit 4943db0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: f5acf5e898618295895b61d81681ae3115d94b96
refs/heads/master: c9f1e6f67ad6d16c11586a4550fd054d7538eb92
12 changes: 5 additions & 7 deletions trunk/drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,18 +2001,14 @@ int sony_pic_camera_command(int command, u8 value)
EXPORT_SYMBOL(sony_pic_camera_command);

/* gprs/edge modem (SZ460N and SZ210P), thanks to Joshua Wise */
static void sony_pic_set_wwanpower(u8 state)
static void __sony_pic_set_wwanpower(u8 state)
{
state = !!state;
mutex_lock(&spic_dev.lock);
if (spic_dev.wwan_power == state) {
mutex_unlock(&spic_dev.lock);
if (spic_dev.wwan_power == state)
return;
}
sony_pic_call2(0xB0, state);
sony_pic_call1(0x82);
spic_dev.wwan_power = state;
mutex_unlock(&spic_dev.lock);
}

static ssize_t sony_pic_wwanpower_store(struct device *dev,
Expand All @@ -2024,7 +2020,9 @@ static ssize_t sony_pic_wwanpower_store(struct device *dev,
return -EINVAL;

value = simple_strtoul(buffer, NULL, 10);
sony_pic_set_wwanpower(value);
mutex_lock(&spic_dev.lock);
__sony_pic_set_wwanpower(value);
mutex_unlock(&spic_dev.lock);

return count;
}
Expand Down

0 comments on commit 4943db0

Please sign in to comment.