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: NThomas Röthenbacher <thomas.roethenbacher@fau.de> Signed-off-by: NThomas Röthenbacher <thomas.roethenbacher@fau.de> Signed-off-by: NFabian Schindlatz <fabian.schindlatz@fau.de> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Showing
想要评论请 注册 或 登录