Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273730
b: refs/heads/master
c: 567a23f
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Nov 3, 2011
1 parent 3d93551 commit 79a299c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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: 8c4343e5909f956140229b0d960dc7a9c4fd4bdd
refs/heads/master: 567a23f4389f86c10355ae89909d6d87f312d1a0
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
return err;
}

if (i > 2) {
if (i >= CX25821_NR_INPUT) {
dprintk(1, "%s(): -EINVAL\n", __func__);
return -EINVAL;
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/cx25821/cx25821.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
#define CX25821_BOARD_CONEXANT_ATHENA10 1
#define MAX_VID_CHANNEL_NUM 12
#define VID_CHANNEL_NUM 8
#define CX25821_NR_INPUT 2

struct cx25821_fmt {
char *name;
Expand Down Expand Up @@ -196,7 +197,7 @@ struct cx25821_board {
unsigned char radio_addr;

u32 clk_freq;
struct cx25821_input input[2];
struct cx25821_input input[CX25821_NR_INPUT];
};

struct cx25821_subid {
Expand Down

0 comments on commit 79a299c

Please sign in to comment.