Commit e753b650 authored by Miloslav Trmac's avatar Miloslav Trmac Committed by Dmitry Torokhov

Input: wistron - disable wifi/bluetooth on suspend

Try to save battery power by disabling wifi and bluetooth on suspend.
Signed-off-by: default avatarMiloslav Trmac <mitr@volny.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a5b0cc80
......@@ -451,6 +451,12 @@ static int wistron_suspend(struct platform_device *dev, pm_message_t state)
{
del_timer_sync(&poll_timer);
if (have_wifi)
bios_set_state(WIFI, 0);
if (have_bluetooth)
bios_set_state(BLUETOOTH, 0);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment