瀏覽代碼

Bluetooth: hci_serdev: allow modular drivers

For bluetooth protocol driver only supporting serdev it makes
sense to follow common practice and built them into their own
module.

Such modules need access to hci_uart_register_device and
hci_uart_tx_wakeup for using the common protocol helpers.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Sebastian Reichel 8 年之前
父節點
當前提交
081f36a8c2
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/bluetooth/hci_ldisc.c
  2. 1 0
      drivers/bluetooth/hci_serdev.c

+ 1 - 0
drivers/bluetooth/hci_ldisc.c

@@ -134,6 +134,7 @@ int hci_uart_tx_wakeup(struct hci_uart *hu)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(hci_uart_tx_wakeup);
 
 static void hci_uart_write_work(struct work_struct *work)
 {

+ 1 - 0
drivers/bluetooth/hci_serdev.c

@@ -353,3 +353,4 @@ err_alloc:
 	p->close(hu);
 	return err;
 }
+EXPORT_SYMBOL_GPL(hci_uart_register_device);