diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-22 16:12:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:52 -0400 |
commit | eda9e4e29492aff55ceb3f719a6011bddc60a892 (patch) | |
tree | 88cf6a4b61a4bf1a1e7ef122073a8e52b6a3d963 | |
parent | 614b147b4f8f38a090f88ac02f67b01225bb5d54 (diff) |
V4L/DVB (8746): v4l-dvb: fix compile warnings.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/or51211.c | 2 | ||||
-rw-r--r-- | drivers/media/video/vino.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index af298358e822..a8429ebfa8a2 100644 --- a/drivers/media/dvb/frontends/nxt200x.c +++ b/drivers/media/dvb/frontends/nxt200x.c | |||
@@ -80,7 +80,7 @@ static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len | |||
80 | return 0; | 80 | return 0; |
81 | } | 81 | } |
82 | 82 | ||
83 | static u8 i2c_readbytes (struct nxt200x_state* state, u8 addr, u8* buf, u8 len) | 83 | static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) |
84 | { | 84 | { |
85 | int err; | 85 | int err; |
86 | struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; | 86 | struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; |
@@ -111,7 +111,7 @@ static int nxt200x_writebytes (struct nxt200x_state* state, u8 reg, | |||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static u8 nxt200x_readbytes (struct nxt200x_state* state, u8 reg, u8* buf, u8 len) | 114 | static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u8 len) |
115 | { | 115 | { |
116 | u8 reg2 [] = { reg }; | 116 | u8 reg2 [] = { reg }; |
117 | 117 | ||
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c index 6afe12aaca4e..16cf2fdd5d7d 100644 --- a/drivers/media/dvb/frontends/or51211.c +++ b/drivers/media/dvb/frontends/or51211.c | |||
@@ -88,7 +88,7 @@ static int i2c_writebytes (struct or51211_state* state, u8 reg, const u8 *buf, | |||
88 | return 0; | 88 | return 0; |
89 | } | 89 | } |
90 | 90 | ||
91 | static u8 i2c_readbytes (struct or51211_state* state, u8 reg, u8* buf, int len) | 91 | static int i2c_readbytes(struct or51211_state *state, u8 reg, u8 *buf, int len) |
92 | { | 92 | { |
93 | int err; | 93 | int err; |
94 | struct i2c_msg msg; | 94 | struct i2c_msg msg; |
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 7072cdf74ed4..ca421cc84f8f 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -809,7 +809,7 @@ static void vino_free_buffer_with_count(struct vino_framebuffer *fb, | |||
809 | dprintk("vino_free_buffer_with_count(): count = %d\n", count); | 809 | dprintk("vino_free_buffer_with_count(): count = %d\n", count); |
810 | 810 | ||
811 | for (i = 0; i < count; i++) { | 811 | for (i = 0; i < count; i++) { |
812 | ClearPageReserved(virt_to_page(fb->desc_table.virtual[i])); | 812 | ClearPageReserved(virt_to_page((void *)fb->desc_table.virtual[i])); |
813 | dma_unmap_single(NULL, | 813 | dma_unmap_single(NULL, |
814 | fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], | 814 | fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], |
815 | PAGE_SIZE, DMA_FROM_DEVICE); | 815 | PAGE_SIZE, DMA_FROM_DEVICE); |
@@ -887,7 +887,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb, | |||
887 | dma_data_addr + VINO_PAGE_SIZE * j; | 887 | dma_data_addr + VINO_PAGE_SIZE * j; |
888 | } | 888 | } |
889 | 889 | ||
890 | SetPageReserved(virt_to_page(fb->desc_table.virtual[i])); | 890 | SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i])); |
891 | } | 891 | } |
892 | 892 | ||
893 | /* page_count needs to be set anyway, because the descriptor table has | 893 | /* page_count needs to be set anyway, because the descriptor table has |
@@ -974,7 +974,7 @@ static int vino_prepare_user_buffer(struct vino_framebuffer *fb, | |||
974 | dma_data_addr + VINO_PAGE_SIZE * j; | 974 | dma_data_addr + VINO_PAGE_SIZE * j; |
975 | } | 975 | } |
976 | 976 | ||
977 | SetPageReserved(virt_to_page(fb->desc_table.virtual[i])); | 977 | SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i])); |
978 | } | 978 | } |
979 | 979 | ||
980 | /* page_count needs to be set anyway, because the descriptor table has | 980 | /* page_count needs to be set anyway, because the descriptor table has |