Bluetooth: hci_serdev: allow modular drivers
authorSebastian Reichel <sre@kernel.org>
Tue, 28 Mar 2017 15:59:37 +0000 (17:59 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:12:17 +0000 (22:12 +0200)
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>
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_serdev.c

index 0ec8a94bd712f2444a9ee82224a40c6e639228de..17bcbc13623fe63476dfeaa1e1ab3559f648b84e 100644 (file)
@@ -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)
 {
index 3b8ac0ece3fbf6a3dc9c3091e5f44afe9b8eff00..7de0edc0ff8cd73bca5d81bc1a96794c35234a17 100644 (file)
@@ -353,3 +353,4 @@ err_alloc:
        p->close(hu);
        return err;
 }
+EXPORT_SYMBOL_GPL(hci_uart_register_device);