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>
This commit is contained in:
committed by
Gustavo F. Padovan
parent
2d7cee5836
commit
3243553fdc
@@ -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;
|
||||
|
Reference in New Issue
Block a user