]> err.no Git - linux-2.6/commitdiff
bluetooth: treat firmware data as const
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 23 May 2008 22:56:51 +0000 (23:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 10 Jul 2008 13:25:59 +0000 (14:25 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/bluetooth/bfusb.c
drivers/bluetooth/bt3c_cs.c

index b990805806af89de1e34b258077f2af73d6b1c6a..0c211adbc06398c80ed98d1b6006b8ced30e8ded 100644 (file)
@@ -566,7 +566,8 @@ static int bfusb_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg
        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;
        int err, pipe, len, size, sent = 0;
index 7703d6e06fd988926dd2e697e32c4a57eee37158..593b7c5950380bff58d8dac8d19ba95cf129220d 100644 (file)
@@ -470,7 +470,8 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
 /* ======================== 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 b[9];