Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100945
b: refs/heads/master
c: 93a9c90
h: refs/heads/master
i:
  100943: f9ec771
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jul 10, 2008
1 parent 54e31cb commit fe251a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2ba47d776bf9a45e15f28fc73ad44877437bef9
refs/heads/master: 93a9c901c88ba2b1bae9dd55e6243896b8a580f1
10 changes: 5 additions & 5 deletions trunk/sound/pci/riptide/riptide.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ static union firmware_version firmware_versions[] = {
},
};

static u32 atoh(unsigned char *in, unsigned int len)
static u32 atoh(const unsigned char *in, unsigned int len)
{
u32 sum = 0;
unsigned int mult = 1;
Expand All @@ -702,12 +702,12 @@ static u32 atoh(unsigned char *in, unsigned int len)
return sum;
}

static int senddata(struct cmdif *cif, unsigned char *in, u32 offset)
static int senddata(struct cmdif *cif, const unsigned char *in, u32 offset)
{
u32 addr;
u32 data;
u32 i;
unsigned char *p;
const unsigned char *p;

i = atoh(&in[1], 2);
addr = offset + atoh(&in[3], 4);
Expand All @@ -726,10 +726,10 @@ static int senddata(struct cmdif *cif, unsigned char *in, u32 offset)
return 0;
}

static int loadfirmware(struct cmdif *cif, unsigned char *img,
static int loadfirmware(struct cmdif *cif, const unsigned char *img,
unsigned int size)
{
unsigned char *in;
const unsigned char *in;
u32 laddr, saddr, t, val;
int err = 0;

Expand Down

0 comments on commit fe251a9

Please sign in to comment.