diff options
author | Miloslav Trmac <mitr@volny.cz> | 2005-11-20 00:51:05 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-11-20 00:51:05 -0500 |
commit | e753b650e10af8a040b1081e72088b826bdef72f (patch) | |
tree | d9f8c5dfb1e7ecdc9404f15a94b237053e1b1cbc /drivers/input | |
parent | a5b0cc80bc3cc98809c7674bda9928db497f0ebb (diff) |
Input: wistron - disable wifi/bluetooth on suspend
Try to save battery power by disabling wifi and bluetooth on suspend.
Signed-off-by: Miloslav Trmac <mitr@volny.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/wistron_btns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c index 3df30130e33c..49d0416a2a9a 100644 --- a/drivers/input/misc/wistron_btns.c +++ b/drivers/input/misc/wistron_btns.c | |||
@@ -451,6 +451,12 @@ static int wistron_suspend(struct platform_device *dev, pm_message_t state) | |||
451 | { | 451 | { |
452 | del_timer_sync(&poll_timer); | 452 | del_timer_sync(&poll_timer); |
453 | 453 | ||
454 | if (have_wifi) | ||
455 | bios_set_state(WIFI, 0); | ||
456 | |||
457 | if (have_bluetooth) | ||
458 | bios_set_state(BLUETOOTH, 0); | ||
459 | |||
454 | return 0; | 460 | return 0; |
455 | } | 461 | } |
456 | 462 | ||