Bluetooth: btusb: Consolidate code for waiting firmware download
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 23 Mar 2021 18:59:00 +0000 (11:59 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Mar 2021 15:09:51 +0000 (16:09 +0100)
commit21e31c6501d9c24dae8869628ccc80b36f2a3d01
treefd7b4ff9c541646bf4fbfabccc87a1d041642bba
parentd68903da4e220d1e6b7c6ecdb853c36144c6acc9
Bluetooth: btusb: Consolidate code for waiting firmware download

This moves duplicated code for waiting firmware download completion to
a function that can be reused.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c