diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-05-19 13:08:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-05-19 13:08:09 -0300 |
commit | d334b57f4f49f9f7d78475dd6aa29b1dbaee90fe (patch) | |
tree | 86c00639129ce852006145ae1137ac7fbcaf25ea /linux/drivers/media/video | |
parent | a9f25b4215fa710a1e0074888d2aab5a168d4d78 (diff) | |
download | mediapointer-dvb-s2-d334b57f4f49f9f7d78475dd6aa29b1dbaee90fe.tar.gz mediapointer-dvb-s2-d334b57f4f49f9f7d78475dd6aa29b1dbaee90fe.tar.bz2 |
Fix some compilation warnings
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/meye.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/quickcam_messenger.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/zoran_device.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/meye.c b/linux/drivers/media/video/meye.c index 774d9af5b..a494fccd2 100644 --- a/linux/drivers/media/video/meye.c +++ b/linux/drivers/media/video/meye.c @@ -1683,13 +1683,13 @@ static unsigned int meye_poll(struct file *file, poll_table *wait) static void meye_vm_open(struct vm_area_struct *vma) { - int idx = (int)vma->vm_private_data; + long idx = (long)vma->vm_private_data; meye.vma_use_count[idx]++; } static void meye_vm_close(struct vm_area_struct *vma) { - int idx = (int)vma->vm_private_data; + long idx = (long)vma->vm_private_data; meye.vma_use_count[idx]--; } diff --git a/linux/drivers/media/video/usbvideo/quickcam_messenger.c b/linux/drivers/media/video/usbvideo/quickcam_messenger.c index 8ad9f6af8..3f3182a24 100644 --- a/linux/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/linux/drivers/media/video/usbvideo/quickcam_messenger.c @@ -343,7 +343,7 @@ static int qcm_sensor_set_gains(struct uvd *uvd, u16 hue, u16 saturation, u16 value) { int ret; - u16 r,g,b; + u16 r=0,g=0,b=0; /* this code is based on qc-usb-messenger */ qcm_hsv2rgb(hue, saturation, value, &r, &g, &b); diff --git a/linux/drivers/media/video/zoran_device.c b/linux/drivers/media/video/zoran_device.c index bb5011280..176b23143 100644 --- a/linux/drivers/media/video/zoran_device.c +++ b/linux/drivers/media/video/zoran_device.c @@ -537,7 +537,7 @@ zr36057_overlay (struct zoran *zr, * All error messages are internal driver checking only! */ /* video display top and bottom registers */ - reg = (u32) zr->buffer.base + + reg = (long) zr->buffer.base + zr->overlay_settings.x * ((zr->overlay_settings.format->depth + 7) / 8) + zr->overlay_settings.y * |