projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6f3c5f
)
Bluetooth: Make hci a child of the corresponding tty device.
author
Andrei Warkentin
<andreiw@motorola.com>
Fri, 11 Feb 2011 23:19:26 +0000
(17:19 -0600)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Wed, 16 Feb 2011 19:33:25 +0000
(16:33 -0300)
Make /sys/class/bluetooth/hciX a symlink to
path under corresponding tty.
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
drivers/bluetooth/hci_ldisc.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_ldisc.c
b/drivers/bluetooth/hci_ldisc.c
index 3c6cabcb7d84b0428cdeae91b3f9a98f2bc85715..48ad2a7ab080ba9a58c425da7cc959dba0e1e3de 100644
(file)
--- a/
drivers/bluetooth/hci_ldisc.c
+++ b/
drivers/bluetooth/hci_ldisc.c
@@
-398,6
+398,7
@@
static int hci_uart_register_dev(struct hci_uart *hu)
hdev->flush = hci_uart_flush;
hdev->send = hci_uart_send_frame;
hdev->destruct = hci_uart_destruct;
+ hdev->parent = hu->tty->dev;
hdev->owner = THIS_MODULE;