Bluetooth: btbcm: Factor out common code to determine subversion
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Apr 2018 12:44:03 +0000 (14:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2018 04:37:51 +0000 (06:37 +0200)
commitf7328381bf64137e958d9fd0e070752d1366e91b
tree818ae7e84cba515a484a2bd4a0ad85cbdcd9a311
parent1b2525c05bf9c661f6631e598b3bef5ce810085a
Bluetooth: btbcm: Factor out common code to determine subversion

We are using the same loop in both the UART and USB bus cases, refactor
things a bit to share the loop.

This is mostly meant to improve readability.

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