Bluetooth: btusb: mediatek: readx_poll_timeout replaces open coding
authorSean Wang <sean.wang@mediatek.com>
Wed, 28 Jun 2023 22:54:55 +0000 (06:54 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:41:19 +0000 (11:41 -0700)
commitca58330c0b68c5597606f329c75e3c1edadc0f81
tree7f7114d17986e72b38994e82648ee0b6f72f7af9
parent3e0635181fccb01f3e6bef148da718226fc0b1db
Bluetooth: btusb: mediatek: readx_poll_timeout replaces open coding

Use readx_poll_timeout instead of open coding to poll the hardware reset
status until it is done.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c