]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49b9e1c400037090c77098584dd1ad1f19907c46
tree335aeb0bd4c96156d461e5466c09b5e47a5529f3
parent14e67c7ba856551baad59f6edda9acbabcde8b15
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