Bluetooth: hci_uart: Use const data pointer for received data
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 5 Apr 2015 03:59:41 +0000 (20:59 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2015 16:47:09 +0000 (18:47 +0200)
commit9d1c40ebb66416f166b92c6828af48549ca99307
treef9071750b40ce62a798a47cb861d1dc4a7cc1c86
parent5c7d2dd2852c7cd8f07cf91291b351c01b781044
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>
drivers/bluetooth/hci_ath.c
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_h4.c
drivers/bluetooth/hci_h5.c
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_ll.c
drivers/bluetooth/hci_uart.h