FROMGIT: Bluetooth: Get rid of cmd_timeout and use the reset callback
The hdev->reset is never used now and the hdev->cmd_timeout actually does reset. This patch changes the call path from hdev->cmd_timeout -> vendor_cmd_timeout -> btusb_reset -> hdev->reset , to hdev->reset -> vendor_reset -> btusb_reset Which makes it clear when we export the hdev->reset to a wider usage e.g. allowing reset from sysfs. This patch doesn't introduce any behavior change. Signed-off-by: Hsin-chen Chuang <chharry@chromium.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Bug: 376104075 (cherry picked from commit f07d478090b0a03dda46fb45b5c6e089a8408351 https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master) Change-Id: I254b42de3a00bfac036ba69b650137536cdc00c5 Signed-off-by: Hsin-chen Chuang <chharry@google.com>
This commit is contained in:
committed by
Neill Kapron
parent
6bbb857470
commit
bfdabcde86
@@ -632,7 +632,6 @@ struct hci_dev {
|
||||
int (*post_init)(struct hci_dev *hdev);
|
||||
int (*set_diag)(struct hci_dev *hdev, bool enable);
|
||||
int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr);
|
||||
void (*cmd_timeout)(struct hci_dev *hdev);
|
||||
void (*reset)(struct hci_dev *hdev);
|
||||
bool (*wakeup)(struct hci_dev *hdev);
|
||||
int (*set_quality_report)(struct hci_dev *hdev, bool enable);
|
||||
|
||||
Reference in New Issue
Block a user