Skip to content

Commit 081f36a

Browse files
sreholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 52b318e commit 081f36a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/bluetooth/hci_ldisc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ int hci_uart_tx_wakeup(struct hci_uart *hu)
134134

135135
return 0;
136136
}
137+
EXPORT_SYMBOL_GPL(hci_uart_tx_wakeup);
137138

138139
static void hci_uart_write_work(struct work_struct *work)
139140
{

drivers/bluetooth/hci_serdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,4 @@ int hci_uart_register_device(struct hci_uart *hu,
353353
p->close(hu);
354354
return err;
355355
}
356+
EXPORT_SYMBOL_GPL(hci_uart_register_device);

0 commit comments

Comments
 (0)