Bluetooth: btusb: Add helper for READ_LOCAL_VERSION command
authorDaniel Drake <drake@endlessm.com>
Tue, 24 Feb 2015 00:16:47 +0000 (18:16 -0600)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 13 Mar 2015 10:47:48 +0000 (12:47 +0200)
commit6576fe4afc1203d27a5f4c8f5511f44203f4e333
tree1da3af518e8833fb96ddb079a311628890c363e7
parent238be788fcb75870661ec165dc90f2a2674e7fcb
Bluetooth: btusb: Add helper for READ_LOCAL_VERSION command

Multiple codepaths duplicate some simple code to read and
sanity-check local version information. Before I add a couple more
such codepaths, add a helper to reduce duplication.

Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btusb.c