diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2018-08-09 10:33:07 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2018-08-09 20:48:10 +0300 |
commit | b9763cdfd4a91a34f95ccc5e881ff2aa366197ef (patch) | |
tree | 3818450c6e97a1b231af605a176da2ae741a6a5d /drivers/bluetooth/hci_h5.c | |
parent | 7d2eb6de6e6315ad5b93b848ba14360b2370ac4d (diff) | |
download | lwn-b9763cdfd4a91a34f95ccc5e881ff2aa366197ef.tar.gz lwn-b9763cdfd4a91a34f95ccc5e881ff2aa366197ef.zip |
Bluetooth: Introduce BT_HCIUART_RTL configuration option
Like all the other UART protocols, introduce a configuration option for
Realtek based serial devices.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_h5.c')
-rw-r--r-- | drivers/bluetooth/hci_h5.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index 63c0dcbc4914..8eede1197cd2 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -841,6 +841,7 @@ static void h5_serdev_remove(struct serdev_device *serdev) hci_uart_unregister_device(&h5->serdev_hu); } +#ifdef CONFIG_BT_HCIUART_RTL static int h5_btrtl_setup(struct h5 *h5) { struct btrtl_device_info *btrtl_dev; @@ -922,10 +923,13 @@ static struct h5_vnd rtl_vnd = { .close = h5_btrtl_close, .acpi_gpio_map = acpi_btrtl_gpios, }; +#endif #ifdef CONFIG_ACPI static const struct acpi_device_id h5_acpi_match[] = { +#ifdef CONFIG_BT_HCIUART_RTL { "OBDA8723", (kernel_ulong_t)&rtl_vnd }, +#endif { }, }; MODULE_DEVICE_TABLE(acpi, h5_acpi_match); |