aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-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