Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f4b2b04 authored by Andrei Warkentin's avatar Andrei Warkentin Committed by Gustavo Padovan
Browse files

Bluetooth: Make hci a child of the corresponding tty device.



Make /sys/class/bluetooth/hciX a symlink to
path under corresponding tty.

Signed-off-by: default avatarAndrei Warkentin <andreiw@motorola.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent c6f3c5f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;