Skip to content

Commit

Permalink
Bluetooth: Make hci a child of the corresponding tty device.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrei Warkentin authored and Gustavo F. Padovan committed Feb 16, 2011
1 parent c6f3c5f commit 7f4b2b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7f4b2b0

Please sign in to comment.