Bluetooth: Use switch statement for Intel hardware variants
authorTedd Ho-Jeong An <tedd.an@intel.com>
Mon, 6 Mar 2017 23:38:26 +0000 (15:38 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:37 +0000 (22:02 +0200)
commit9268834b60c0b08101c7a8522b6901cf4cd57a14
tree8c71b035f8282ca8e08de3fac3ff989ebb24cd81
parentd8edd9ed156a1a840f1b1c2dbbf458684d6eea6e
Bluetooth: Use switch statement for Intel hardware variants

Multiple new hardware variants are planned and the simple if statement
would get really complicated and unreadable. So instead replace it with
a simple switch statement.

The change is applied to both USB and UART.

Based-on-patch-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c
drivers/bluetooth/hci_intel.c