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>
 }
 
 static const struct hci_uart_proto athp = {
-       .id = HCI_UART_ATH3K,
-       .open = ath_open,
-       .close = ath_close,
-       .recv = ath_recv,
-       .enqueue = ath_enqueue,
-       .dequeue = ath_dequeue,
-       .flush = ath_flush,
+       .id             = HCI_UART_ATH3K,
+       .name           = "ATH3K",
+       .open           = ath_open,
+       .close          = ath_close,
+       .recv           = ath_recv,
+       .enqueue        = ath_enqueue,
+       .dequeue        = ath_dequeue,
+       .flush          = ath_flush,
 };
 
 int __init ath_init(void)
 
 
 static const struct hci_uart_proto bcsp = {
        .id             = HCI_UART_BCSP,
+       .name           = "BCSP",
        .open           = bcsp_open,
        .close          = bcsp_close,
        .enqueue        = bcsp_enqueue,
 
 
 static const struct hci_uart_proto h4p = {
        .id             = HCI_UART_H4,
+       .name           = "H4",
        .open           = h4_open,
        .close          = h4_close,
        .recv           = h4_recv,
 
 
 static const struct hci_uart_proto h5p = {
        .id             = HCI_UART_3WIRE,
+       .name           = "Three-wire (H5)",
        .open           = h5_open,
        .close          = h5_close,
        .recv           = h5_recv,
 
 
 static const struct hci_uart_proto llp = {
        .id             = HCI_UART_LL,
+       .name           = "LL",
        .open           = ll_open,
        .close          = ll_close,
        .recv           = ll_recv,
 
 
 struct hci_uart_proto {
        unsigned int id;
+       const char *name;
        int (*open)(struct hci_uart *hu);
        int (*close)(struct hci_uart *hu);
        int (*flush)(struct hci_uart *hu);