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

index 99538862e3428af01e3f26e5ed668a4f0c17baa6..585af2eb1438945c1418770e37fbe904a8b6093c 100644 (file)
@@ -453,7 +453,7 @@ int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *boot)
                        vx_outb(chip, TXM, 0);
                        vx_outb(chip, TXL, 0);
                } else {
-                       unsigned char *image = boot->data + i;
+                       const unsigned char *image = boot->data + i;
                        if (vx_wait_isr_bit(chip, ISR_TX_EMPTY) < 0) {
                                snd_printk(KERN_ERR "dsp boot failed at %d\n", i);
                                return -EIO;
@@ -671,7 +671,7 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp)
        unsigned int i;
        int err;
        unsigned int csum = 0;
-       unsigned char *image, *cptr;
+       const unsigned char *image, *cptr;
 
        snd_assert(dsp->size % 3 == 0, return -EINVAL);