]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
irda-usb: treat firmware data as const
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 23 May 2008 23:10:26 +0000 (00:10 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 10 Jul 2008 13:26:25 +0000 (14:26 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/net/irda/irda-usb.c

index 6f50ed7b183f6efcbe4e458a2346e6a95e687dc8..18b471cd14471b4264eb33a6a53b340439e72a09 100644 (file)
@@ -1024,7 +1024,7 @@ static int irda_usb_is_receiving(struct irda_usb_cb *self)
  *   Upload firmware code to SigmaTel 421X IRDA-USB dongle
  */
 static int stir421x_fw_upload(struct irda_usb_cb *self,
-                            unsigned char *patch,
+                            const unsigned char *patch,
                             const unsigned int patch_len)
 {
         int ret = -ENOMEM;
@@ -1073,11 +1073,11 @@ static int stir421x_fw_upload(struct irda_usb_cb *self,
   */
 static int stir421x_patch_device(struct irda_usb_cb *self)
 {
-        unsigned int i;
-        int ret;
-        char stir421x_fw_name[11];
-        const struct firmware *fw;
-        unsigned char *fw_version_ptr; /* pointer to version string */
+       unsigned int i;
+       int ret;
+       char stir421x_fw_name[11];
+       const struct firmware *fw;
+       const unsigned char *fw_version_ptr; /* pointer to version string */
        unsigned long fw_version = 0;
 
         /*