Przeglądaj źródła

bluetooth: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 17 lat temu
rodzic
commit
8187b4fb9c
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 2 1
      drivers/bluetooth/bfusb.c
  2. 2 1
      drivers/bluetooth/bt3c_cs.c

+ 2 - 1
drivers/bluetooth/bfusb.c

@@ -566,7 +566,8 @@ static int bfusb_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg
 	return -ENOIOCTLCMD;
 	return -ENOIOCTLCMD;
 }
 }
 
 
-static int bfusb_load_firmware(struct bfusb_data *data, unsigned char *firmware, int count)
+static int bfusb_load_firmware(struct bfusb_data *data,
+			       const unsigned char *firmware, int count)
 {
 {
 	unsigned char *buf;
 	unsigned char *buf;
 	int err, pipe, len, size, sent = 0;
 	int err, pipe, len, size, sent = 0;

+ 2 - 1
drivers/bluetooth/bt3c_cs.c

@@ -470,7 +470,8 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
 /* ======================== Card services HCI interaction ======================== */
 /* ======================== Card services HCI interaction ======================== */
 
 
 
 
-static int bt3c_load_firmware(bt3c_info_t *info, unsigned char *firmware, int count)
+static int bt3c_load_firmware(bt3c_info_t *info, const unsigned char *firmware,
+			      int count)
 {
 {
 	char *ptr = (char *) firmware;
 	char *ptr = (char *) firmware;
 	char b[9];
 	char b[9];