summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-11-07 22:16:04 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-08 12:54:10 -0200
commit3243553fdc108a0ef49b9e25bdea9c87b341413e (patch)
treeb0ef367f37653b6fdefa3b028fdc0f2e685e5b2e /include
parent2d7cee5836d6d466829b255b1290c9386d4e884f (diff)
downloadlwn-3243553fdc108a0ef49b9e25bdea9c87b341413e.tar.gz
lwn-3243553fdc108a0ef49b9e25bdea9c87b341413e.zip
Bluetooth: Convert power off mechanism to use delayed_work
The power off code doesn't need to use its own custom timer since the delayed_work API provides the exact same functionality. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index c233bceb3ccc..bca53aa754e3 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -193,8 +193,7 @@ struct hci_dev {
struct workqueue_struct *workqueue;
struct work_struct power_on;
- struct work_struct power_off;
- struct timer_list off_timer;
+ struct delayed_work power_off;
__u16 discov_timeout;
struct delayed_work discov_off;