Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74817
b: refs/heads/master
c: b730a81
h: refs/heads/master
i:
  74815: 2eb0e66
v: v3
  • Loading branch information
Richard Knutsson authored and Mauro Carvalho Chehab committed Dec 11, 2007
1 parent 59e1404 commit b9a50a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 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: 174eb8e8cb1ec97904ddeaae54366a03789162ef
refs/heads/master: b730a81c51adc8e87ae3b055fc211af7d5472df2
10 changes: 6 additions & 4 deletions trunk/drivers/media/video/saa5246a.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,14 @@ static int i2c_senddata(struct saa5246a_device *t, ...)
{
unsigned char buf[64];
int v;
int ct=0;
int ct = 0;
va_list argp;
va_start(argp,t);
va_start(argp, t);

while((v=va_arg(argp,int))!=-1)
buf[ct++]=v;
while ((v = va_arg(argp, int)) != -1)
buf[ct++] = v;

va_end(argp);
return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}

Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/saa5249.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,14 @@ static int i2c_senddata(struct saa5249_device *t, ...)
{
unsigned char buf[64];
int v;
int ct=0;
int ct = 0;
va_list argp;
va_start(argp,t);

while((v=va_arg(argp,int))!=-1)
buf[ct++]=v;
while ((v = va_arg(argp, int)) != -1)
buf[ct++] = v;

va_end(argp);
return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}

Expand Down

0 comments on commit b9a50a3

Please sign in to comment.