diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-04-05 05:59:41 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-07 18:47:09 +0200 |
commit | 9d1c40ebb66416f166b92c6828af48549ca99307 (patch) | |
tree | f9071750b40ce62a798a47cb861d1dc4a7cc1c86 /drivers/bluetooth/hci_uart.h | |
parent | Bluetooth: Make data pointer of hci_recv_stream_fragment const (diff) | |
download | linux-9d1c40ebb66416f166b92c6828af48549ca99307.tar.xz linux-9d1c40ebb66416f166b92c6828af48549ca99307.zip |
Bluetooth: hci_uart: Use const data pointer for received data
The TTY layer provides its data pointers as const, but the HCI UART
callbacks expect them as general data pointers. This is of course
wrong and instead of casting them, just fix the individual drivers
to actually take a const data pointer.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_uart.h')
-rw-r--r-- | drivers/bluetooth/hci_uart.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h index 4dc8ab3009a9..79bbcefb0112 100644 --- a/drivers/bluetooth/hci_uart.h +++ b/drivers/bluetooth/hci_uart.h @@ -60,7 +60,7 @@ struct hci_uart_proto { int (*open)(struct hci_uart *hu); int (*close)(struct hci_uart *hu); int (*flush)(struct hci_uart *hu); - int (*recv)(struct hci_uart *hu, void *data, int len); + int (*recv)(struct hci_uart *hu, const void *data, int len); int (*enqueue)(struct hci_uart *hu, struct sk_buff *skb); int (*setup)(struct hci_uart *hu); struct sk_buff *(*dequeue)(struct hci_uart *hu); |