aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-07-12 19:37:50 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:24:44 -0400
commit804b4458943f14bf144d3c3ba50097ced9b27b29 (patch)
tree4c8b32cd168c3ded1215218b84545ec2361ca764 /drivers/media/dvb
parent372280d2a3593e90d8849a5dc5676d2e9799e3a3 (diff)
V4L/DVB (5835): saa7146/dvb-ttpci: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22)
Fix signedness warnings (gcc 4.1.1, kernel 2.6.22). Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/ttpci/av7110_av.c8
-rw-r--r--drivers/media/dvb/ttpci/av7110_ca.c4
-rw-r--r--drivers/media/dvb/ttpci/av7110_hw.c8
-rw-r--r--drivers/media/dvb/ttpci/av7110_hw.h2
-rw-r--r--drivers/media/dvb/ttpci/av7110_v4l.c2
5 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_av.c b/drivers/media/dvb/ttpci/av7110_av.c
index 58678c05aa53..f7a8219d7cfe 100644
--- a/drivers/media/dvb/ttpci/av7110_av.c
+++ b/drivers/media/dvb/ttpci/av7110_av.c
@@ -391,7 +391,7 @@ static int get_video_format(struct av7110 *av7110, u8 *buf, int count)
391 ****************************************************************************/ 391 ****************************************************************************/
392 392
393static inline long aux_ring_buffer_write(struct dvb_ringbuffer *rbuf, 393static inline long aux_ring_buffer_write(struct dvb_ringbuffer *rbuf,
394 const char *buf, unsigned long count) 394 const u8 *buf, unsigned long count)
395{ 395{
396 unsigned long todo = count; 396 unsigned long todo = count;
397 int free; 397 int free;
@@ -436,7 +436,7 @@ static void play_audio_cb(u8 *buf, int count, void *priv)
436#define FREE_COND (dvb_ringbuffer_free(&av7110->avout) >= 20 * 1024 && \ 436#define FREE_COND (dvb_ringbuffer_free(&av7110->avout) >= 20 * 1024 && \
437 dvb_ringbuffer_free(&av7110->aout) >= 20 * 1024) 437 dvb_ringbuffer_free(&av7110->aout) >= 20 * 1024)
438 438
439static ssize_t dvb_play(struct av7110 *av7110, const u8 __user *buf, 439static ssize_t dvb_play(struct av7110 *av7110, const char __user *buf,
440 unsigned long count, int nonblock, int type) 440 unsigned long count, int nonblock, int type)
441{ 441{
442 unsigned long todo = count, n; 442 unsigned long todo = count, n;
@@ -499,7 +499,7 @@ static ssize_t dvb_play_kernel(struct av7110 *av7110, const u8 *buf,
499 return count - todo; 499 return count - todo;
500} 500}
501 501
502static ssize_t dvb_aplay(struct av7110 *av7110, const u8 __user *buf, 502static ssize_t dvb_aplay(struct av7110 *av7110, const char __user *buf,
503 unsigned long count, int nonblock, int type) 503 unsigned long count, int nonblock, int type)
504{ 504{
505 unsigned long todo = count, n; 505 unsigned long todo = count, n;
@@ -959,7 +959,7 @@ static u8 iframe_header[] = { 0x00, 0x00, 0x01, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x
959 959
960#define MIN_IFRAME 400000 960#define MIN_IFRAME 400000
961 961
962static int play_iframe(struct av7110 *av7110, u8 __user *buf, unsigned int len, int nonblock) 962static int play_iframe(struct av7110 *av7110, char __user *buf, unsigned int len, int nonblock)
963{ 963{
964 int i, n; 964 int i, n;
965 965
diff --git a/drivers/media/dvb/ttpci/av7110_ca.c b/drivers/media/dvb/ttpci/av7110_ca.c
index e1c1294bb767..c58e3fc509ed 100644
--- a/drivers/media/dvb/ttpci/av7110_ca.c
+++ b/drivers/media/dvb/ttpci/av7110_ca.c
@@ -151,7 +151,7 @@ static ssize_t ci_ll_write(struct dvb_ringbuffer *cibuf, struct file *file,
151{ 151{
152 int free; 152 int free;
153 int non_blocking = file->f_flags & O_NONBLOCK; 153 int non_blocking = file->f_flags & O_NONBLOCK;
154 char *page = (char *)__get_free_page(GFP_USER); 154 u8 *page = (u8 *)__get_free_page(GFP_USER);
155 int res; 155 int res;
156 156
157 if (!page) 157 if (!page)
@@ -208,7 +208,7 @@ static ssize_t ci_ll_read(struct dvb_ringbuffer *cibuf, struct file *file,
208 return -EINVAL; 208 return -EINVAL;
209 DVB_RINGBUFFER_SKIP(cibuf, 2); 209 DVB_RINGBUFFER_SKIP(cibuf, 2);
210 210
211 return dvb_ringbuffer_read(cibuf, buf, len, 1); 211 return dvb_ringbuffer_read(cibuf, (u8 *)buf, len, 1);
212} 212}
213 213
214static int dvb_ca_open(struct inode *inode, struct file *file) 214static int dvb_ca_open(struct inode *inode, struct file *file)
diff --git a/drivers/media/dvb/ttpci/av7110_hw.c b/drivers/media/dvb/ttpci/av7110_hw.c
index 70aee4eb5da4..515e8232e020 100644
--- a/drivers/media/dvb/ttpci/av7110_hw.c
+++ b/drivers/media/dvb/ttpci/av7110_hw.c
@@ -158,7 +158,7 @@ static int load_dram(struct av7110 *av7110, u32 *data, int len)
158 } 158 }
159 dprintk(4, "writing DRAM block %d\n", i); 159 dprintk(4, "writing DRAM block %d\n", i);
160 mwdebi(av7110, DEBISWAB, bootblock, 160 mwdebi(av7110, DEBISWAB, bootblock,
161 ((char*)data) + i * AV7110_BOOT_MAX_SIZE, AV7110_BOOT_MAX_SIZE); 161 ((u8 *)data) + i * AV7110_BOOT_MAX_SIZE, AV7110_BOOT_MAX_SIZE);
162 bootblock ^= 0x1400; 162 bootblock ^= 0x1400;
163 iwdebi(av7110, DEBISWAB, AV7110_BOOT_BASE, swab32(base), 4); 163 iwdebi(av7110, DEBISWAB, AV7110_BOOT_BASE, swab32(base), 4);
164 iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_SIZE, AV7110_BOOT_MAX_SIZE, 2); 164 iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_SIZE, AV7110_BOOT_MAX_SIZE, 2);
@@ -173,10 +173,10 @@ static int load_dram(struct av7110 *av7110, u32 *data, int len)
173 } 173 }
174 if (rest > 4) 174 if (rest > 4)
175 mwdebi(av7110, DEBISWAB, bootblock, 175 mwdebi(av7110, DEBISWAB, bootblock,
176 ((char*)data) + i * AV7110_BOOT_MAX_SIZE, rest); 176 ((u8 *)data) + i * AV7110_BOOT_MAX_SIZE, rest);
177 else 177 else
178 mwdebi(av7110, DEBISWAB, bootblock, 178 mwdebi(av7110, DEBISWAB, bootblock,
179 ((char*)data) + i * AV7110_BOOT_MAX_SIZE - 4, rest + 4); 179 ((u8 *)data) + i * AV7110_BOOT_MAX_SIZE - 4, rest + 4);
180 180
181 iwdebi(av7110, DEBISWAB, AV7110_BOOT_BASE, swab32(base), 4); 181 iwdebi(av7110, DEBISWAB, AV7110_BOOT_BASE, swab32(base), 4);
182 iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_SIZE, rest, 2); 182 iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_SIZE, rest, 2);
@@ -751,7 +751,7 @@ static int FlushText(struct av7110 *av7110)
751 return 0; 751 return 0;
752} 752}
753 753
754static int WriteText(struct av7110 *av7110, u8 win, u16 x, u16 y, u8* buf) 754static int WriteText(struct av7110 *av7110, u8 win, u16 x, u16 y, char *buf)
755{ 755{
756 int i, ret; 756 int i, ret;
757 unsigned long start; 757 unsigned long start;
diff --git a/drivers/media/dvb/ttpci/av7110_hw.h b/drivers/media/dvb/ttpci/av7110_hw.h
index 673d9b3f064c..74d940f75da6 100644
--- a/drivers/media/dvb/ttpci/av7110_hw.h
+++ b/drivers/media/dvb/ttpci/av7110_hw.h
@@ -393,7 +393,7 @@ static inline void iwdebi(struct av7110 *av7110, u32 config, int addr, u32 val,
393} 393}
394 394
395/* buffer writes */ 395/* buffer writes */
396static inline void mwdebi(struct av7110 *av7110, u32 config, int addr, char *val, int count) 396static inline void mwdebi(struct av7110 *av7110, u32 config, int addr, u8 *val, int count)
397{ 397{
398 memcpy(av7110->debi_virt, val, count); 398 memcpy(av7110->debi_virt, val, count);
399 av7110_debiwrite(av7110, config, addr, 0, count); 399 av7110_debiwrite(av7110, config, addr, 0, count);
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c
index fcd9994058d0..87afaebc0703 100644
--- a/drivers/media/dvb/ttpci/av7110_v4l.c
+++ b/drivers/media/dvb/ttpci/av7110_v4l.c
@@ -333,7 +333,7 @@ static int av7110_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg)
333 return -EINVAL; 333 return -EINVAL;
334 334
335 memset(t, 0, sizeof(*t)); 335 memset(t, 0, sizeof(*t));
336 strcpy(t->name, "Television"); 336 strcpy((char *)t->name, "Television");
337 337
338 t->type = V4L2_TUNER_ANALOG_TV; 338 t->type = V4L2_TUNER_ANALOG_TV;
339 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO | 339 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO |