]> git.baikalelectronics.ru Git - kernel.git/commit
ideapad: fix software rfkill setting
authorArnd Bergmann <arnd@arndb.de>
Sat, 13 Jun 2015 13:23:33 +0000 (15:23 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Mon, 15 Jun 2015 20:28:03 +0000 (13:28 -0700)
commita46f1481ea9ff6c9ed69c68110d28e65c602b359
treecfb2bc7df3208db207707559be1daf2171286a7b
parent2e64e1bf4f8cc2d9bd485a153c6910a425de14ec
ideapad: fix software rfkill setting

This fixes a several year old regression that I found while trying
to get the Yoga 3 11 to work. The ideapad_rfk_set function is meant
to send a command to the embedded controller through ACPI, but
as of 2fea6aa60a, it sends the index of the rfkill device instead
of the command, and ignores the opcode field.

This changes it back to the original behavior, which indeed
flips the rfkill state as seen in the debugfs interface.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 2fea6aa60a ("ideapad: pass ideapad_priv as argument (part 2)")
Cc: stable@vger.kernel.org # v2.6.38+
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c