aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-04 19:50:07 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:58 -0400
commitd2db42dd4eb53b86a40b96b0b12a7b2d12377bdd (patch)
treedd6d312c0e23201fbcad62db31c746d77d49488c /drivers/media/video/usbvision
parent1a0063a9852380190a7172c1a1cb79e934b06cd4 (diff)
V4L/DVB (7502): v4l: video/usbvision replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r--drivers/media/video/usbvision/usbvision-core.c25
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c36
2 files changed, 31 insertions, 30 deletions
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c
index 47f64a031cad..e518d8a35643 100644
--- a/drivers/media/video/usbvision/usbvision-core.c
+++ b/drivers/media/video/usbvision/usbvision-core.c
@@ -386,7 +386,7 @@ int usbvision_scratch_alloc(struct usb_usbvision *usbvision)
386 scratch_reset(usbvision); 386 scratch_reset(usbvision);
387 if(usbvision->scratch == NULL) { 387 if(usbvision->scratch == NULL) {
388 err("%s: unable to allocate %d bytes for scratch", 388 err("%s: unable to allocate %d bytes for scratch",
389 __FUNCTION__, scratch_buf_size); 389 __func__, scratch_buf_size);
390 return -ENOMEM; 390 return -ENOMEM;
391 } 391 }
392 return 0; 392 return 0;
@@ -495,7 +495,8 @@ int usbvision_decompress_alloc(struct usb_usbvision *usbvision)
495 int IFB_size = MAX_FRAME_WIDTH * MAX_FRAME_HEIGHT * 3 / 2; 495 int IFB_size = MAX_FRAME_WIDTH * MAX_FRAME_HEIGHT * 3 / 2;
496 usbvision->IntraFrameBuffer = vmalloc_32(IFB_size); 496 usbvision->IntraFrameBuffer = vmalloc_32(IFB_size);
497 if (usbvision->IntraFrameBuffer == NULL) { 497 if (usbvision->IntraFrameBuffer == NULL) {
498 err("%s: unable to allocate %d for compr. frame buffer", __FUNCTION__, IFB_size); 498 err("%s: unable to allocate %d for compr. frame buffer",
499 __func__, IFB_size);
499 return -ENOMEM; 500 return -ENOMEM;
500 } 501 }
501 return 0; 502 return 0;
@@ -1518,7 +1519,7 @@ static void usbvision_isocIrq(struct urb *urb)
1518 1519
1519 if(errCode) { 1520 if(errCode) {
1520 err("%s: usb_submit_urb failed: error %d", 1521 err("%s: usb_submit_urb failed: error %d",
1521 __FUNCTION__, errCode); 1522 __func__, errCode);
1522 } 1523 }
1523 1524
1524 return; 1525 return;
@@ -1549,7 +1550,7 @@ int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg)
1549 0, (__u16) reg, buffer, 1, HZ); 1550 0, (__u16) reg, buffer, 1, HZ);
1550 1551
1551 if (errCode < 0) { 1552 if (errCode < 0) {
1552 err("%s: failed: error %d", __FUNCTION__, errCode); 1553 err("%s: failed: error %d", __func__, errCode);
1553 return errCode; 1554 return errCode;
1554 } 1555 }
1555 return buffer[0]; 1556 return buffer[0];
@@ -1577,7 +1578,7 @@ int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg,
1577 USB_RECIP_ENDPOINT, 0, (__u16) reg, &value, 1, HZ); 1578 USB_RECIP_ENDPOINT, 0, (__u16) reg, &value, 1, HZ);
1578 1579
1579 if (errCode < 0) { 1580 if (errCode < 0) {
1580 err("%s: failed: error %d", __FUNCTION__, errCode); 1581 err("%s: failed: error %d", __func__, errCode);
1581 } 1582 }
1582 return errCode; 1583 return errCode;
1583} 1584}
@@ -1853,7 +1854,7 @@ int usbvision_set_output(struct usb_usbvision *usbvision, int width,
1853 0, (__u16) USBVISION_LXSIZE_O, value, 4, HZ); 1854 0, (__u16) USBVISION_LXSIZE_O, value, 4, HZ);
1854 1855
1855 if (errCode < 0) { 1856 if (errCode < 0) {
1856 err("%s failed: error %d", __FUNCTION__, errCode); 1857 err("%s failed: error %d", __func__, errCode);
1857 return errCode; 1858 return errCode;
1858 } 1859 }
1859 usbvision->curwidth = usbvision->stretch_width * UsbWidth; 1860 usbvision->curwidth = usbvision->stretch_width * UsbWidth;
@@ -2239,7 +2240,7 @@ static int usbvision_set_dram_settings(struct usb_usbvision *usbvision)
2239 (__u16) USBVISION_DRM_PRM1, value, 8, HZ); 2240 (__u16) USBVISION_DRM_PRM1, value, 8, HZ);
2240 2241
2241 if (rc < 0) { 2242 if (rc < 0) {
2242 err("%sERROR=%d", __FUNCTION__, rc); 2243 err("%sERROR=%d", __func__, rc);
2243 return rc; 2244 return rc;
2244 } 2245 }
2245 2246
@@ -2488,7 +2489,7 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
2488 2489
2489 urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL); 2490 urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL);
2490 if (urb == NULL) { 2491 if (urb == NULL) {
2491 err("%s: usb_alloc_urb() failed", __FUNCTION__); 2492 err("%s: usb_alloc_urb() failed", __func__);
2492 return -ENOMEM; 2493 return -ENOMEM;
2493 } 2494 }
2494 usbvision->sbuf[bufIdx].urb = urb; 2495 usbvision->sbuf[bufIdx].urb = urb;
@@ -2522,13 +2523,13 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
2522 GFP_KERNEL); 2523 GFP_KERNEL);
2523 if (errCode) { 2524 if (errCode) {
2524 err("%s: usb_submit_urb(%d) failed: error %d", 2525 err("%s: usb_submit_urb(%d) failed: error %d",
2525 __FUNCTION__, bufIdx, errCode); 2526 __func__, bufIdx, errCode);
2526 } 2527 }
2527 } 2528 }
2528 2529
2529 usbvision->streaming = Stream_Idle; 2530 usbvision->streaming = Stream_Idle;
2530 PDEBUG(DBG_ISOC, "%s: streaming=1 usbvision->video_endp=$%02x", 2531 PDEBUG(DBG_ISOC, "%s: streaming=1 usbvision->video_endp=$%02x",
2531 __FUNCTION__, 2532 __func__,
2532 usbvision->video_endp); 2533 usbvision->video_endp);
2533 return 0; 2534 return 0;
2534} 2535}
@@ -2562,7 +2563,7 @@ void usbvision_stop_isoc(struct usb_usbvision *usbvision)
2562 } 2563 }
2563 2564
2564 2565
2565 PDEBUG(DBG_ISOC, "%s: streaming=Stream_Off\n", __FUNCTION__); 2566 PDEBUG(DBG_ISOC, "%s: streaming=Stream_Off\n", __func__);
2566 usbvision->streaming = Stream_Off; 2567 usbvision->streaming = Stream_Off;
2567 2568
2568 if (!usbvision->remove_pending) { 2569 if (!usbvision->remove_pending) {
@@ -2573,7 +2574,7 @@ void usbvision_stop_isoc(struct usb_usbvision *usbvision)
2573 usbvision->ifaceAlt); 2574 usbvision->ifaceAlt);
2574 if (errCode < 0) { 2575 if (errCode < 0) {
2575 err("%s: usb_set_interface() failed: error %d", 2576 err("%s: usb_set_interface() failed: error %d",
2576 __FUNCTION__, errCode); 2577 __func__, errCode);
2577 usbvision->last_error = errCode; 2578 usbvision->last_error = errCode;
2578 } 2579 }
2579 regValue = (16-usbvision_read_reg(usbvision, USBVISION_ALTER_REG)) & 0x0F; 2580 regValue = (16-usbvision_read_reg(usbvision, USBVISION_ALTER_REG)) & 0x0F;
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 2c2e10639564..13f378c4439e 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -343,7 +343,7 @@ static void usbvision_create_sysfs(struct video_device *vdev)
343 return; 343 return;
344 } while (0); 344 } while (0);
345 345
346 err("%s error: %d\n", __FUNCTION__, res); 346 err("%s error: %d\n", __func__, res);
347} 347}
348 348
349static void usbvision_remove_sysfs(struct video_device *vdev) 349static void usbvision_remove_sysfs(struct video_device *vdev)
@@ -490,7 +490,7 @@ static int usbvision_v4l2_close(struct inode *inode, struct file *file)
490 mutex_unlock(&usbvision->lock); 490 mutex_unlock(&usbvision->lock);
491 491
492 if (usbvision->remove_pending) { 492 if (usbvision->remove_pending) {
493 printk(KERN_INFO "%s: Final disconnect\n", __FUNCTION__); 493 printk(KERN_INFO "%s: Final disconnect\n", __func__);
494 usbvision_release(usbvision); 494 usbvision_release(usbvision);
495 } 495 }
496 496
@@ -522,7 +522,7 @@ static int vidioc_g_register (struct file *file, void *priv,
522 errCode = usbvision_read_reg(usbvision, reg->reg&0xff); 522 errCode = usbvision_read_reg(usbvision, reg->reg&0xff);
523 if (errCode < 0) { 523 if (errCode < 0) {
524 err("%s: VIDIOC_DBG_G_REGISTER failed: error %d", 524 err("%s: VIDIOC_DBG_G_REGISTER failed: error %d",
525 __FUNCTION__, errCode); 525 __func__, errCode);
526 return errCode; 526 return errCode;
527 } 527 }
528 reg->val = errCode; 528 reg->val = errCode;
@@ -543,7 +543,7 @@ static int vidioc_s_register (struct file *file, void *priv,
543 errCode = usbvision_write_reg(usbvision, reg->reg&0xff, reg->val); 543 errCode = usbvision_write_reg(usbvision, reg->reg&0xff, reg->val);
544 if (errCode < 0) { 544 if (errCode < 0) {
545 err("%s: VIDIOC_DBG_S_REGISTER failed: error %d", 545 err("%s: VIDIOC_DBG_S_REGISTER failed: error %d",
546 __FUNCTION__, errCode); 546 __func__, errCode);
547 return errCode; 547 return errCode;
548 } 548 }
549 return 0; 549 return 0;
@@ -1102,7 +1102,7 @@ static ssize_t usbvision_v4l2_read(struct file *file, char __user *buf,
1102 int ret,i; 1102 int ret,i;
1103 struct usbvision_frame *frame; 1103 struct usbvision_frame *frame;
1104 1104
1105 PDEBUG(DBG_IO, "%s: %ld bytes, noblock=%d", __FUNCTION__, 1105 PDEBUG(DBG_IO, "%s: %ld bytes, noblock=%d", __func__,
1106 (unsigned long)count, noblock); 1106 (unsigned long)count, noblock);
1107 1107
1108 if (!USBVISION_IS_OPERATIONAL(usbvision) || (buf == NULL)) 1108 if (!USBVISION_IS_OPERATIONAL(usbvision) || (buf == NULL))
@@ -1171,7 +1171,7 @@ static ssize_t usbvision_v4l2_read(struct file *file, char __user *buf,
1171 } 1171 }
1172 1172
1173 PDEBUG(DBG_IO, "%s: frmx=%d, bytes_read=%ld, scanlength=%ld", 1173 PDEBUG(DBG_IO, "%s: frmx=%d, bytes_read=%ld, scanlength=%ld",
1174 __FUNCTION__, 1174 __func__,
1175 frame->index, frame->bytes_read, frame->scanlength); 1175 frame->index, frame->bytes_read, frame->scanlength);
1176 1176
1177 /* copy bytes to user space; we allow for partials reads */ 1177 /* copy bytes to user space; we allow for partials reads */
@@ -1184,7 +1184,7 @@ static ssize_t usbvision_v4l2_read(struct file *file, char __user *buf,
1184 1184
1185 frame->bytes_read += count; 1185 frame->bytes_read += count;
1186 PDEBUG(DBG_IO, "%s: {copy} count used=%ld, new bytes_read=%ld", 1186 PDEBUG(DBG_IO, "%s: {copy} count used=%ld, new bytes_read=%ld",
1187 __FUNCTION__, 1187 __func__,
1188 (unsigned long)count, frame->bytes_read); 1188 (unsigned long)count, frame->bytes_read);
1189 1189
1190 /* For now, forget the frame if it has not been read in one shot. */ 1190 /* For now, forget the frame if it has not been read in one shot. */
@@ -1269,12 +1269,12 @@ static int usbvision_radio_open(struct inode *inode, struct file *file)
1269 (struct usb_usbvision *) video_get_drvdata(dev); 1269 (struct usb_usbvision *) video_get_drvdata(dev);
1270 int errCode = 0; 1270 int errCode = 0;
1271 1271
1272 PDEBUG(DBG_IO, "%s:", __FUNCTION__); 1272 PDEBUG(DBG_IO, "%s:", __func__);
1273 1273
1274 mutex_lock(&usbvision->lock); 1274 mutex_lock(&usbvision->lock);
1275 1275
1276 if (usbvision->user) { 1276 if (usbvision->user) {
1277 err("%s: Someone tried to open an already opened USBVision Radio!", __FUNCTION__); 1277 err("%s: Someone tried to open an already opened USBVision Radio!", __func__);
1278 errCode = -EBUSY; 1278 errCode = -EBUSY;
1279 } 1279 }
1280 else { 1280 else {
@@ -1342,7 +1342,7 @@ static int usbvision_radio_close(struct inode *inode, struct file *file)
1342 mutex_unlock(&usbvision->lock); 1342 mutex_unlock(&usbvision->lock);
1343 1343
1344 if (usbvision->remove_pending) { 1344 if (usbvision->remove_pending) {
1345 printk(KERN_INFO "%s: Final disconnect\n", __FUNCTION__); 1345 printk(KERN_INFO "%s: Final disconnect\n", __func__);
1346 usbvision_release(usbvision); 1346 usbvision_release(usbvision);
1347 } 1347 }
1348 1348
@@ -1507,7 +1507,7 @@ static struct video_device *usbvision_vdev_init(struct usb_usbvision *usbvision,
1507 struct video_device *vdev; 1507 struct video_device *vdev;
1508 1508
1509 if (usb_dev == NULL) { 1509 if (usb_dev == NULL) {
1510 err("%s: usbvision->dev is not set", __FUNCTION__); 1510 err("%s: usbvision->dev is not set", __func__);
1511 return NULL; 1511 return NULL;
1512 } 1512 }
1513 1513
@@ -1759,7 +1759,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf,
1759 PDEBUG(DBG_PROBE, "model out of bounds %d",model); 1759 PDEBUG(DBG_PROBE, "model out of bounds %d",model);
1760 return -ENODEV; 1760 return -ENODEV;
1761 } 1761 }
1762 printk(KERN_INFO "%s: %s found\n", __FUNCTION__, 1762 printk(KERN_INFO "%s: %s found\n", __func__,
1763 usbvision_device_data[model].ModelString); 1763 usbvision_device_data[model].ModelString);
1764 1764
1765 if (usbvision_device_data[model].Interface >= 0) { 1765 if (usbvision_device_data[model].Interface >= 0) {
@@ -1771,20 +1771,20 @@ static int __devinit usbvision_probe(struct usb_interface *intf,
1771 if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != 1771 if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) !=
1772 USB_ENDPOINT_XFER_ISOC) { 1772 USB_ENDPOINT_XFER_ISOC) {
1773 err("%s: interface %d. has non-ISO endpoint!", 1773 err("%s: interface %d. has non-ISO endpoint!",
1774 __FUNCTION__, ifnum); 1774 __func__, ifnum);
1775 err("%s: Endpoint attributes %d", 1775 err("%s: Endpoint attributes %d",
1776 __FUNCTION__, endpoint->bmAttributes); 1776 __func__, endpoint->bmAttributes);
1777 return -ENODEV; 1777 return -ENODEV;
1778 } 1778 }
1779 if ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == 1779 if ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) ==
1780 USB_DIR_OUT) { 1780 USB_DIR_OUT) {
1781 err("%s: interface %d. has ISO OUT endpoint!", 1781 err("%s: interface %d. has ISO OUT endpoint!",
1782 __FUNCTION__, ifnum); 1782 __func__, ifnum);
1783 return -ENODEV; 1783 return -ENODEV;
1784 } 1784 }
1785 1785
1786 if ((usbvision = usbvision_alloc(dev)) == NULL) { 1786 if ((usbvision = usbvision_alloc(dev)) == NULL) {
1787 err("%s: couldn't allocate USBVision struct", __FUNCTION__); 1787 err("%s: couldn't allocate USBVision struct", __func__);
1788 return -ENOMEM; 1788 return -ENOMEM;
1789 } 1789 }
1790 1790
@@ -1868,7 +1868,7 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
1868 PDEBUG(DBG_PROBE, ""); 1868 PDEBUG(DBG_PROBE, "");
1869 1869
1870 if (usbvision == NULL) { 1870 if (usbvision == NULL) {
1871 err("%s: usb_get_intfdata() failed", __FUNCTION__); 1871 err("%s: usb_get_intfdata() failed", __func__);
1872 return; 1872 return;
1873 } 1873 }
1874 usb_set_intfdata (intf, NULL); 1874 usb_set_intfdata (intf, NULL);
@@ -1891,7 +1891,7 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
1891 1891
1892 if (usbvision->user) { 1892 if (usbvision->user) {
1893 printk(KERN_INFO "%s: In use, disconnect pending\n", 1893 printk(KERN_INFO "%s: In use, disconnect pending\n",
1894 __FUNCTION__); 1894 __func__);
1895 wake_up_interruptible(&usbvision->wait_frame); 1895 wake_up_interruptible(&usbvision->wait_frame);
1896 wake_up_interruptible(&usbvision->wait_stream); 1896 wake_up_interruptible(&usbvision->wait_stream);
1897 } else { 1897 } else {