Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113849
b: refs/heads/master
c: eda9e4e
h: refs/heads/master
i:
  113847: ae3b72d
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 6f5b503 commit 680e5bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: 614b147b4f8f38a090f88ac02f67b01225bb5d54
refs/heads/master: eda9e4e29492aff55ceb3f719a6011bddc60a892
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/nxt200x.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len
return 0;
}

static u8 i2c_readbytes (struct nxt200x_state* state, u8 addr, u8* buf, u8 len)
static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len)
{
int err;
struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len };
Expand Down Expand Up @@ -111,7 +111,7 @@ static int nxt200x_writebytes (struct nxt200x_state* state, u8 reg,
return 0;
}

static u8 nxt200x_readbytes (struct nxt200x_state* state, u8 reg, u8* buf, u8 len)
static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u8 len)
{
u8 reg2 [] = { reg };

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/frontends/or51211.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int i2c_writebytes (struct or51211_state* state, u8 reg, const u8 *buf,
return 0;
}

static u8 i2c_readbytes (struct or51211_state* state, u8 reg, u8* buf, int len)
static int i2c_readbytes(struct or51211_state *state, u8 reg, u8 *buf, int len)
{
int err;
struct i2c_msg msg;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/vino.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ static void vino_free_buffer_with_count(struct vino_framebuffer *fb,
dprintk("vino_free_buffer_with_count(): count = %d\n", count);

for (i = 0; i < count; i++) {
ClearPageReserved(virt_to_page(fb->desc_table.virtual[i]));
ClearPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
dma_unmap_single(NULL,
fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i],
PAGE_SIZE, DMA_FROM_DEVICE);
Expand Down Expand Up @@ -887,7 +887,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb,
dma_data_addr + VINO_PAGE_SIZE * j;
}

SetPageReserved(virt_to_page(fb->desc_table.virtual[i]));
SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
}

/* page_count needs to be set anyway, because the descriptor table has
Expand Down Expand Up @@ -974,7 +974,7 @@ static int vino_prepare_user_buffer(struct vino_framebuffer *fb,
dma_data_addr + VINO_PAGE_SIZE * j;
}

SetPageReserved(virt_to_page(fb->desc_table.virtual[i]));
SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
}

/* page_count needs to be set anyway, because the descriptor table has
Expand Down

0 comments on commit 680e5bf

Please sign in to comment.