]> git.baikalelectronics.ru Git - kernel.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)
commit6e043f90c325a1454489c4bd9c01b62da95741b4
tree33d8569029e31fce567f5221492a1611677e96ef
parent88d80d5c2e45b44ea850dad8155caae7691d8c47
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