Bluetooth: Make hci a child of the corresponding tty device.
authorAndrei Warkentin <andreiw@motorola.com>
Fri, 11 Feb 2011 23:19:26 +0000 (17:19 -0600)
committerGustavo 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

index 3c6cabc..48ad2a7 100644 (file)
@@ -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;