Bluetooth: btbcm: Fold Patch loading + applying into btbcm_initialize()
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 Apr 2020 17:15:27 +0000 (19:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Apr 2020 17:43:58 +0000 (19:43 +0200)
commit0287c5d84f5c0cde6c39362d56c7002dc4acedb3
treeaa73d9ef6837614e6f889d6bab100a185db5dd7c
parentf8c51d28e9d13f20c33f4f2f46f8e7d0b8476b9c
Bluetooth: btbcm: Fold Patch loading + applying into btbcm_initialize()

Instead of having btbcm_initialize() fill a passed in fw_name buffer
and then have its callers use that to request the firmware + load
it into the HCI, make btbcm_initialize() do this itself the first
time it is called (its get called a second time to reset the HCI
after the firmware has been loaded).

This removes some code duplication and makes it easier for further
patches in this series to try more then 1 firmware filename.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c
drivers/bluetooth/btbcm.h
drivers/bluetooth/hci_bcm.c