Bluetooth: btrtl: Add RTL8723D and RTL8821C devices
authorAlex Lu <alex_lu@realsil.com.cn>
Sun, 11 Feb 2018 18:24:33 +0000 (12:24 -0600)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 11 Feb 2018 20:50:35 +0000 (21:50 +0100)
commit907f84990924bf3a8d248c040dabeb5127ae6938
tree335aeb0bd4c96156d461e5466c09b5e47a5529f3
parentfed03fe7e55b7dc16077f672bd9d7bbe92b3a691
Bluetooth: btrtl: Add RTL8723D and RTL8821C devices

The Bluetooth parts of RTL8723D and RTL8723B share the same lmp
subversion, thus we need to check both lmp subversion and hci revision
to distinguish the two. The same situation is true for RTL8821A and
RTL8821C. Accordingly, the selection code is revised.

To improve maintainability, a new id_table struct is defined, and an
array of such structs is constructed. Adding a new device can thus be
as simple as adding another value to the table.

Signed-off-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrtl.c