]> asedeno.scripts.mit.edu Git - linux.git/commit
Bluetooth: hci_ll: Refactor download_firmware
authorFabian Schindlatz <fabian.schindlatz@fau.de>
Mon, 1 Jul 2019 20:57:13 +0000 (22:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Jul 2019 10:30:51 +0000 (12:30 +0200)
commit6322f377bc4a0e3dac040c1c6d01761514f42187
tree33d8569029e31fce567f5221492a1611677e96ef
parenta2e02f38eff84f199c8e32359eb213f81f270047
Bluetooth: hci_ll: Refactor download_firmware

Extract the new function send_command_from_firmware from
download_firmware, which helps with the readability of the switch
statement. This way the code is less deeply nested and also no longer
exceeds the 80 character limit.

Co-developed-by: Thomas Röthenbacher <thomas.roethenbacher@fau.de>
Signed-off-by: Thomas Röthenbacher <thomas.roethenbacher@fau.de>
Signed-off-by: Fabian Schindlatz <fabian.schindlatz@fau.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c