diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-08 22:20:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:59 -0400 |
commit | 22b4e64f0a119e94090ef45285a5c311f1f6855f (patch) | |
tree | 60ab79ee2f2e5c8bcab8f8dc0a91e2ff105f5464 /drivers/media/video/cx23885/cx23885-video.c | |
parent | 94205c7a48b637ae60bd69ac4cc16743a6dddd09 (diff) |
V4L/DVB (7520): media/video/cx23885 replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index 45bf2146a193..84652210a28c 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -141,7 +141,7 @@ static struct cx23885_fmt *format_by_fourcc(unsigned int fourcc) | |||
141 | if (formats[i].fourcc == fourcc) | 141 | if (formats[i].fourcc == fourcc) |
142 | return formats+i; | 142 | return formats+i; |
143 | 143 | ||
144 | printk(KERN_ERR "%s(0x%08x) NOT FOUND\n", __FUNCTION__, fourcc); | 144 | printk(KERN_ERR "%s(0x%08x) NOT FOUND\n", __func__, fourcc); |
145 | return NULL; | 145 | return NULL; |
146 | } | 146 | } |
147 | 147 | ||
@@ -292,13 +292,13 @@ void cx23885_video_wakeup(struct cx23885_dev *dev, | |||
292 | } | 292 | } |
293 | if (bc != 1) | 293 | if (bc != 1) |
294 | printk(KERN_ERR "%s: %d buffers handled (should be 1)\n", | 294 | printk(KERN_ERR "%s: %d buffers handled (should be 1)\n", |
295 | __FUNCTION__, bc); | 295 | __func__, bc); |
296 | } | 296 | } |
297 | 297 | ||
298 | int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) | 298 | int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) |
299 | { | 299 | { |
300 | dprintk(1, "%s(norm = 0x%08x) name: [%s]\n", | 300 | dprintk(1, "%s(norm = 0x%08x) name: [%s]\n", |
301 | __FUNCTION__, | 301 | __func__, |
302 | (unsigned int)norm, | 302 | (unsigned int)norm, |
303 | v4l2_norm_to_name(norm)); | 303 | v4l2_norm_to_name(norm)); |
304 | 304 | ||
@@ -319,7 +319,7 @@ struct video_device *cx23885_vdev_init(struct cx23885_dev *dev, | |||
319 | char *type) | 319 | char *type) |
320 | { | 320 | { |
321 | struct video_device *vfd; | 321 | struct video_device *vfd; |
322 | dprintk(1, "%s()\n", __FUNCTION__); | 322 | dprintk(1, "%s()\n", __func__); |
323 | 323 | ||
324 | vfd = video_device_alloc(); | 324 | vfd = video_device_alloc(); |
325 | if (NULL == vfd) | 325 | if (NULL == vfd) |
@@ -358,7 +358,7 @@ EXPORT_SYMBOL(cx23885_ctrl_query); | |||
358 | static int res_get(struct cx23885_dev *dev, struct cx23885_fh *fh, | 358 | static int res_get(struct cx23885_dev *dev, struct cx23885_fh *fh, |
359 | unsigned int bit) | 359 | unsigned int bit) |
360 | { | 360 | { |
361 | dprintk(1, "%s()\n", __FUNCTION__); | 361 | dprintk(1, "%s()\n", __func__); |
362 | if (fh->resources & bit) | 362 | if (fh->resources & bit) |
363 | /* have it already allocated */ | 363 | /* have it already allocated */ |
364 | return 1; | 364 | return 1; |
@@ -392,7 +392,7 @@ static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, | |||
392 | unsigned int bits) | 392 | unsigned int bits) |
393 | { | 393 | { |
394 | BUG_ON((fh->resources & bits) != bits); | 394 | BUG_ON((fh->resources & bits) != bits); |
395 | dprintk(1, "%s()\n", __FUNCTION__); | 395 | dprintk(1, "%s()\n", __func__); |
396 | 396 | ||
397 | mutex_lock(&dev->lock); | 397 | mutex_lock(&dev->lock); |
398 | fh->resources &= ~bits; | 398 | fh->resources &= ~bits; |
@@ -407,7 +407,7 @@ int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | |||
407 | memset(&route, 0, sizeof(route)); | 407 | memset(&route, 0, sizeof(route)); |
408 | 408 | ||
409 | dprintk(1, "%s() video_mux: %d [vmux=%d, gpio=0x%x,0x%x,0x%x,0x%x]\n", | 409 | dprintk(1, "%s() video_mux: %d [vmux=%d, gpio=0x%x,0x%x,0x%x,0x%x]\n", |
410 | __FUNCTION__, | 410 | __func__, |
411 | input, INPUT(input)->vmux, | 411 | input, INPUT(input)->vmux, |
412 | INPUT(input)->gpio0, INPUT(input)->gpio1, | 412 | INPUT(input)->gpio0, INPUT(input)->gpio1, |
413 | INPUT(input)->gpio2, INPUT(input)->gpio3); | 413 | INPUT(input)->gpio2, INPUT(input)->gpio3); |
@@ -427,7 +427,7 @@ EXPORT_SYMBOL(cx23885_video_mux); | |||
427 | int cx23885_set_scale(struct cx23885_dev *dev, unsigned int width, | 427 | int cx23885_set_scale(struct cx23885_dev *dev, unsigned int width, |
428 | unsigned int height, enum v4l2_field field) | 428 | unsigned int height, enum v4l2_field field) |
429 | { | 429 | { |
430 | dprintk(1, "%s()\n", __FUNCTION__); | 430 | dprintk(1, "%s()\n", __func__); |
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
@@ -435,7 +435,7 @@ static int cx23885_start_video_dma(struct cx23885_dev *dev, | |||
435 | struct cx23885_dmaqueue *q, | 435 | struct cx23885_dmaqueue *q, |
436 | struct cx23885_buffer *buf) | 436 | struct cx23885_buffer *buf) |
437 | { | 437 | { |
438 | dprintk(1, "%s()\n", __FUNCTION__); | 438 | dprintk(1, "%s()\n", __func__); |
439 | 439 | ||
440 | /* setup fifo + format */ | 440 | /* setup fifo + format */ |
441 | cx23885_sram_channel_setup(dev, &dev->sram_channels[SRAM_CH01], | 441 | cx23885_sram_channel_setup(dev, &dev->sram_channels[SRAM_CH01], |
@@ -463,7 +463,7 @@ static int cx23885_restart_video_queue(struct cx23885_dev *dev, | |||
463 | { | 463 | { |
464 | struct cx23885_buffer *buf, *prev; | 464 | struct cx23885_buffer *buf, *prev; |
465 | struct list_head *item; | 465 | struct list_head *item; |
466 | dprintk(1, "%s()\n", __FUNCTION__); | 466 | dprintk(1, "%s()\n", __func__); |
467 | 467 | ||
468 | if (!list_empty(&q->active)) { | 468 | if (!list_empty(&q->active)) { |
469 | buf = list_entry(q->active.next, struct cx23885_buffer, | 469 | buf = list_entry(q->active.next, struct cx23885_buffer, |
@@ -579,13 +579,13 @@ static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, | |||
579 | if (dev->tvnorm & V4L2_STD_NTSC) { | 579 | if (dev->tvnorm & V4L2_STD_NTSC) { |
580 | /* cx25840 transmits NTSC bottom field first */ | 580 | /* cx25840 transmits NTSC bottom field first */ |
581 | dprintk(1, "%s() Creating NTSC risc\n", | 581 | dprintk(1, "%s() Creating NTSC risc\n", |
582 | __FUNCTION__); | 582 | __func__); |
583 | line0_offset = buf->bpl; | 583 | line0_offset = buf->bpl; |
584 | line1_offset = 0; | 584 | line1_offset = 0; |
585 | } else { | 585 | } else { |
586 | /* All other formats are top field first */ | 586 | /* All other formats are top field first */ |
587 | dprintk(1, "%s() Creating PAL/SECAM risc\n", | 587 | dprintk(1, "%s() Creating PAL/SECAM risc\n", |
588 | __FUNCTION__); | 588 | __func__); |
589 | line0_offset = 0; | 589 | line0_offset = 0; |
590 | line1_offset = buf->bpl; | 590 | line1_offset = buf->bpl; |
591 | } | 591 | } |
@@ -885,7 +885,7 @@ static int video_mmap(struct file *file, struct vm_area_struct *vma) | |||
885 | 885 | ||
886 | int cx23885_get_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 886 | int cx23885_get_control(struct cx23885_dev *dev, struct v4l2_control *ctl) |
887 | { | 887 | { |
888 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __FUNCTION__); | 888 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __func__); |
889 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); | 889 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); |
890 | return 0; | 890 | return 0; |
891 | } | 891 | } |
@@ -894,7 +894,7 @@ EXPORT_SYMBOL(cx23885_get_control); | |||
894 | int cx23885_set_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 894 | int cx23885_set_control(struct cx23885_dev *dev, struct v4l2_control *ctl) |
895 | { | 895 | { |
896 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" | 896 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" |
897 | " (disabled - no action)\n", __FUNCTION__); | 897 | " (disabled - no action)\n", __func__); |
898 | return 0; | 898 | return 0; |
899 | } | 899 | } |
900 | EXPORT_SYMBOL(cx23885_set_control); | 900 | EXPORT_SYMBOL(cx23885_set_control); |
@@ -990,7 +990,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv, | |||
990 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; | 990 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; |
991 | int err; | 991 | int err; |
992 | 992 | ||
993 | dprintk(2, "%s()\n", __FUNCTION__); | 993 | dprintk(2, "%s()\n", __func__); |
994 | err = vidioc_try_fmt_cap(file, priv, f); | 994 | err = vidioc_try_fmt_cap(file, priv, f); |
995 | 995 | ||
996 | if (0 != err) | 996 | if (0 != err) |
@@ -999,7 +999,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv, | |||
999 | fh->width = f->fmt.pix.width; | 999 | fh->width = f->fmt.pix.width; |
1000 | fh->height = f->fmt.pix.height; | 1000 | fh->height = f->fmt.pix.height; |
1001 | fh->vidq.field = f->fmt.pix.field; | 1001 | fh->vidq.field = f->fmt.pix.field; |
1002 | dprintk(2, "%s() width=%d height=%d field=%d\n", __FUNCTION__, | 1002 | dprintk(2, "%s() width=%d height=%d field=%d\n", __func__, |
1003 | fh->width, fh->height, fh->vidq.field); | 1003 | fh->width, fh->height, fh->vidq.field); |
1004 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_S_FMT, f); | 1004 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_S_FMT, f); |
1005 | return 0; | 1005 | return 0; |
@@ -1101,7 +1101,7 @@ static int vidioc_streamon(struct file *file, void *priv, | |||
1101 | { | 1101 | { |
1102 | struct cx23885_fh *fh = priv; | 1102 | struct cx23885_fh *fh = priv; |
1103 | struct cx23885_dev *dev = fh->dev; | 1103 | struct cx23885_dev *dev = fh->dev; |
1104 | dprintk(1, "%s()\n", __FUNCTION__); | 1104 | dprintk(1, "%s()\n", __func__); |
1105 | 1105 | ||
1106 | if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)) | 1106 | if (unlikely(fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)) |
1107 | return -EINVAL; | 1107 | return -EINVAL; |
@@ -1118,7 +1118,7 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) | |||
1118 | struct cx23885_fh *fh = priv; | 1118 | struct cx23885_fh *fh = priv; |
1119 | struct cx23885_dev *dev = fh->dev; | 1119 | struct cx23885_dev *dev = fh->dev; |
1120 | int err, res; | 1120 | int err, res; |
1121 | dprintk(1, "%s()\n", __FUNCTION__); | 1121 | dprintk(1, "%s()\n", __func__); |
1122 | 1122 | ||
1123 | if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1123 | if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
1124 | return -EINVAL; | 1124 | return -EINVAL; |
@@ -1136,7 +1136,7 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i) | |||
1136 | static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *tvnorms) | 1136 | static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *tvnorms) |
1137 | { | 1137 | { |
1138 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; | 1138 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; |
1139 | dprintk(1, "%s()\n", __FUNCTION__); | 1139 | dprintk(1, "%s()\n", __func__); |
1140 | 1140 | ||
1141 | mutex_lock(&dev->lock); | 1141 | mutex_lock(&dev->lock); |
1142 | cx23885_set_tvnorm(dev, *tvnorms); | 1142 | cx23885_set_tvnorm(dev, *tvnorms); |
@@ -1159,7 +1159,7 @@ int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i) | |||
1159 | [CX23885_VMUX_DEBUG] = "for debug only", | 1159 | [CX23885_VMUX_DEBUG] = "for debug only", |
1160 | }; | 1160 | }; |
1161 | unsigned int n; | 1161 | unsigned int n; |
1162 | dprintk(1, "%s()\n", __FUNCTION__); | 1162 | dprintk(1, "%s()\n", __func__); |
1163 | 1163 | ||
1164 | n = i->index; | 1164 | n = i->index; |
1165 | if (n >= 4) | 1165 | if (n >= 4) |
@@ -1184,7 +1184,7 @@ static int vidioc_enum_input(struct file *file, void *priv, | |||
1184 | struct v4l2_input *i) | 1184 | struct v4l2_input *i) |
1185 | { | 1185 | { |
1186 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; | 1186 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; |
1187 | dprintk(1, "%s()\n", __FUNCTION__); | 1187 | dprintk(1, "%s()\n", __func__); |
1188 | return cx23885_enum_input(dev, i); | 1188 | return cx23885_enum_input(dev, i); |
1189 | } | 1189 | } |
1190 | 1190 | ||
@@ -1193,7 +1193,7 @@ static int vidioc_g_input(struct file *file, void *priv, unsigned int *i) | |||
1193 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; | 1193 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; |
1194 | 1194 | ||
1195 | *i = dev->input; | 1195 | *i = dev->input; |
1196 | dprintk(1, "%s() returns %d\n", __FUNCTION__, *i); | 1196 | dprintk(1, "%s() returns %d\n", __func__, *i); |
1197 | return 0; | 1197 | return 0; |
1198 | } | 1198 | } |
1199 | 1199 | ||
@@ -1201,10 +1201,10 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i) | |||
1201 | { | 1201 | { |
1202 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; | 1202 | struct cx23885_dev *dev = ((struct cx23885_fh *)priv)->dev; |
1203 | 1203 | ||
1204 | dprintk(1, "%s(%d)\n", __FUNCTION__, i); | 1204 | dprintk(1, "%s(%d)\n", __func__, i); |
1205 | 1205 | ||
1206 | if (i >= 4) { | 1206 | if (i >= 4) { |
1207 | dprintk(1, "%s() -EINVAL\n", __FUNCTION__); | 1207 | dprintk(1, "%s() -EINVAL\n", __func__); |
1208 | return -EINVAL; | 1208 | return -EINVAL; |
1209 | } | 1209 | } |
1210 | 1210 | ||
@@ -1389,7 +1389,7 @@ int cx23885_video_irq(struct cx23885_dev *dev, u32 status) | |||
1389 | return handled; | 1389 | return handled; |
1390 | cx_write(VID_A_INT_STAT, status); | 1390 | cx_write(VID_A_INT_STAT, status); |
1391 | 1391 | ||
1392 | dprintk(2, "%s() status = 0x%08x\n", __FUNCTION__, status); | 1392 | dprintk(2, "%s() status = 0x%08x\n", __func__, status); |
1393 | /* risc op code error */ | 1393 | /* risc op code error */ |
1394 | if (status & (1 << 16)) { | 1394 | if (status & (1 << 16)) { |
1395 | printk(KERN_WARNING "%s/0: video risc op code error\n", | 1395 | printk(KERN_WARNING "%s/0: video risc op code error\n", |
@@ -1487,7 +1487,7 @@ static const struct file_operations radio_fops = { | |||
1487 | 1487 | ||
1488 | void cx23885_video_unregister(struct cx23885_dev *dev) | 1488 | void cx23885_video_unregister(struct cx23885_dev *dev) |
1489 | { | 1489 | { |
1490 | dprintk(1, "%s()\n", __FUNCTION__); | 1490 | dprintk(1, "%s()\n", __func__); |
1491 | cx_clear(PCI_INT_MSK, 1); | 1491 | cx_clear(PCI_INT_MSK, 1); |
1492 | 1492 | ||
1493 | if (dev->video_dev) { | 1493 | if (dev->video_dev) { |
@@ -1505,7 +1505,7 @@ int cx23885_video_register(struct cx23885_dev *dev) | |||
1505 | { | 1505 | { |
1506 | int err; | 1506 | int err; |
1507 | 1507 | ||
1508 | dprintk(1, "%s()\n", __FUNCTION__); | 1508 | dprintk(1, "%s()\n", __func__); |
1509 | spin_lock_init(&dev->slock); | 1509 | spin_lock_init(&dev->slock); |
1510 | 1510 | ||
1511 | /* Initialize VBI template */ | 1511 | /* Initialize VBI template */ |