Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
}