Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296984
b: refs/heads/master
c: 20db88e
h: refs/heads/master
v: v3
  • Loading branch information
Corentin Chary authored and Matthew Garrett committed Mar 20, 2012
1 parent 1af2893 commit 6b6dc15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: a2d5dd24af1308d35329d78e74a1a3a94a1c1344
refs/heads/master: 20db88e32d139e7646c61b23b027a7471f343fae
10 changes: 8 additions & 2 deletions trunk/drivers/platform/x86/samsung-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ static const struct backlight_ops backlight_ops = {

static int seclinux_rfkill_set(void *data, bool blocked)
{
struct samsung_laptop *samsung = data;
struct samsung_rfkill *srfkill = data;
struct samsung_laptop *samsung = srfkill->samsung;
const struct sabi_commands *commands = &samsung->config->commands;

return sabi_set_commandb(samsung, commands->set_wireless_button,
Expand Down Expand Up @@ -889,8 +890,13 @@ static int __init samsung_rfkill_init_swsmi(struct samsung_laptop *samsung)
int ret;

ret = swsmi_wireless_status(samsung, &data);
if (ret)
if (ret) {
/* Some swsmi laptops use the old seclinux way to control
* wireless devices */
if (ret == -EINVAL)
ret = samsung_rfkill_init_seclinux(samsung);
return ret;
}

/* 0x02 seems to mean that the device is no present/available */

Expand Down

0 comments on commit 6b6dc15

Please sign in to comment.