diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-07 20:16:04 (GMT) |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-08 14:54:10 (GMT) |
commit | 3243553fdc108a0ef49b9e25bdea9c87b341413e (patch) | |
tree | b0ef367f37653b6fdefa3b028fdc0f2e685e5b2e /include/net | |
parent | 2d7cee5836d6d466829b255b1290c9386d4e884f (diff) | |
download | linux-fsl-qoriq-3243553fdc108a0ef49b9e25bdea9c87b341413e.tar.xz |
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/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index c233bce..bca53aa 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; |