From: David Woodhouse Date: Fri, 23 May 2008 23:02:28 +0000 (+0100) Subject: pcxhr: treat firmware data as const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8d21807a1a479e0214a03069a88e3e93492b72d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git pcxhr: treat firmware data as const Signed-off-by: David Woodhouse --- diff --git a/sound/pci/pcxhr/pcxhr_core.c b/sound/pci/pcxhr/pcxhr_core.c index 78aa81feaa4a..957e6afe94f1 100644 --- a/sound/pci/pcxhr/pcxhr_core.c +++ b/sound/pci/pcxhr/pcxhr_core.c @@ -269,7 +269,7 @@ int pcxhr_load_xilinx_binary(struct pcxhr_mgr *mgr, const struct firmware *xilin unsigned int chipsc; unsigned char data; unsigned char mask; - unsigned char *image; + const unsigned char *image; /* test first xilinx */ chipsc = PCXHR_INPL(mgr, PCXHR_PLX_CHIPSC); @@ -316,7 +316,7 @@ static int pcxhr_download_dsp(struct pcxhr_mgr *mgr, const struct firmware *dsp) int err; unsigned int i; unsigned int len; - unsigned char *data; + const unsigned char *data; unsigned char dummy; /* check the length of boot image */ snd_assert(dsp->size > 0, return -EINVAL);