diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2008-05-23 19:02:28 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-10 09:26:09 -0400 |
| commit | b8d21807a1a479e0214a03069a88e3e93492b72d (patch) | |
| tree | dd6089f948177dfda598a1b379aecffba5211ce9 /sound/pci/pcxhr | |
| parent | 93a9c901c88ba2b1bae9dd55e6243896b8a580f1 (diff) | |
pcxhr: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'sound/pci/pcxhr')
| -rw-r--r-- | sound/pci/pcxhr/pcxhr_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
| 269 | unsigned int chipsc; | 269 | unsigned int chipsc; |
| 270 | unsigned char data; | 270 | unsigned char data; |
| 271 | unsigned char mask; | 271 | unsigned char mask; |
| 272 | unsigned char *image; | 272 | const unsigned char *image; |
| 273 | 273 | ||
| 274 | /* test first xilinx */ | 274 | /* test first xilinx */ |
| 275 | chipsc = PCXHR_INPL(mgr, PCXHR_PLX_CHIPSC); | 275 | chipsc = PCXHR_INPL(mgr, PCXHR_PLX_CHIPSC); |
| @@ -316,7 +316,7 @@ static int pcxhr_download_dsp(struct pcxhr_mgr *mgr, const struct firmware *dsp) | |||
| 316 | int err; | 316 | int err; |
| 317 | unsigned int i; | 317 | unsigned int i; |
| 318 | unsigned int len; | 318 | unsigned int len; |
| 319 | unsigned char *data; | 319 | const unsigned char *data; |
| 320 | unsigned char dummy; | 320 | unsigned char dummy; |
| 321 | /* check the length of boot image */ | 321 | /* check the length of boot image */ |
| 322 | snd_assert(dsp->size > 0, return -EINVAL); | 322 | snd_assert(dsp->size > 0, return -EINVAL); |
