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>
This commit is contained in:
Marcel Holtmann
2015-04-04 20:59:41 -07:00
parent 5c7d2dd285
commit 9d1c40ebb6
7 changed files with 10 additions and 10 deletions

View File

@@ -188,7 +188,7 @@ static struct sk_buff *ath_dequeue(struct hci_uart *hu)
}
/* Recv data */
static int ath_recv(struct hci_uart *hu, void *data, int count)
static int ath_recv(struct hci_uart *hu, const void *data, int count)
{
int ret;