aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/riptide
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-05-23 19:02:03 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:26:07 -0400
commit93a9c901c88ba2b1bae9dd55e6243896b8a580f1 (patch)
tree32d7f31a98511d609e46c02110de3883dd60dddb /sound/pci/riptide
parentc2ba47d776bf9a45e15f28fc73ad44877437bef9 (diff)
riptide: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'sound/pci/riptide')
-rw-r--r--sound/pci/riptide/riptide.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c
index 979f7da641ce..6a3596247348 100644
--- a/sound/pci/riptide/riptide.c
+++ b/sound/pci/riptide/riptide.c
@@ -682,7 +682,7 @@ static union firmware_version firmware_versions[] = {
682 }, 682 },
683}; 683};
684 684
685static u32 atoh(unsigned char *in, unsigned int len) 685static u32 atoh(const unsigned char *in, unsigned int len)
686{ 686{
687 u32 sum = 0; 687 u32 sum = 0;
688 unsigned int mult = 1; 688 unsigned int mult = 1;
@@ -702,12 +702,12 @@ static u32 atoh(unsigned char *in, unsigned int len)
702 return sum; 702 return sum;
703} 703}
704 704
705static int senddata(struct cmdif *cif, unsigned char *in, u32 offset) 705static int senddata(struct cmdif *cif, const unsigned char *in, u32 offset)
706{ 706{
707 u32 addr; 707 u32 addr;
708 u32 data; 708 u32 data;
709 u32 i; 709 u32 i;
710 unsigned char *p; 710 const unsigned char *p;
711 711
712 i = atoh(&in[1], 2); 712 i = atoh(&in[1], 2);
713 addr = offset + atoh(&in[3], 4); 713 addr = offset + atoh(&in[3], 4);
@@ -726,10 +726,10 @@ static int senddata(struct cmdif *cif, unsigned char *in, u32 offset)
726 return 0; 726 return 0;
727} 727}
728 728
729static int loadfirmware(struct cmdif *cif, unsigned char *img, 729static int loadfirmware(struct cmdif *cif, const unsigned char *img,
730 unsigned int size) 730 unsigned int size)
731{ 731{
732 unsigned char *in; 732 const unsigned char *in;
733 u32 laddr, saddr, t, val; 733 u32 laddr, saddr, t, val;
734 int err = 0; 734 int err = 0;
735 735