aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision-video.c
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/usbvision-video.c
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/usbvision-video.c')
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c36
1 files changed, 18 insertions, 18 deletions
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 {