aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_bcsp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-04-04 22:27:34 -0700
committerMarcel Holtmann <marcel@holtmann.org>2015-04-07 18:47:10 +0200
commit7c40fb8db135288485f4f6226ceb69d64610a84e (patch)
tree6a54af660d80d93947e566f5cf83c5496e53a129 /drivers/bluetooth/hci_bcsp.c
parentBluetooth: hci_uart: Make struct hci_uart_proto always const (diff)
downloadlinux-dev-7c40fb8db135288485f4f6226ceb69d64610a84e.tar.xz
linux-dev-7c40fb8db135288485f4f6226ceb69d64610a84e.zip
Bluetooth: hci_uart: Add name information to hci_uart_proto struct
This adds an extra name field to the hci_uart_proto struct that provides a simple way of adding a string identifier to the protocol. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_bcsp.c')
-rw-r--r--drivers/bluetooth/hci_bcsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
index 7d30e05a973f..285fd0a97311 100644
--- a/drivers/bluetooth/hci_bcsp.c
+++ b/drivers/bluetooth/hci_bcsp.c
@@ -737,6 +737,7 @@ static int bcsp_close(struct hci_uart *hu)
static const struct hci_uart_proto bcsp = {
.id = HCI_UART_BCSP,
+ .name = "BCSP",
.open = bcsp_open,
.close = bcsp_close,
.enqueue = bcsp_enqueue,