summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-05-24 03:02:49 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 17:26:10 +0400
commit2f0600b639777cbc1c0ae3f7bbbc982b0838e706 (patch)
tree359cc37f494ca099b8a05413bd4a00db1e93a86a /sound
parentb8d21807a1a479e0214a03069a88e3e93492b72d (diff)
downloadlinux-2f0600b639777cbc1c0ae3f7bbbc982b0838e706.tar.xz
vx: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/drivers/vx/vx_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
index 99538862e342..585af2eb1438 100644
--- a/sound/drivers/vx/vx_core.c
+++ b/sound/drivers/vx/vx_core.c
@@ -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);