aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-08 22:20:00 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:59 -0400
commit7e28adb2497f6b873516163e2d29210c11777613 (patch)
tree2f65ee1bcadb2915f196a277dbac83af99685481
parente9815ceea9733dfb236629f5b72f2e6486f66242 (diff)
V4L/DVB (7518): media/video/ 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>
-rw-r--r--drivers/media/video/cpia.h4
-rw-r--r--drivers/media/video/cpia_usb.c2
-rw-r--r--drivers/media/video/ir-kbd-i2c.c2
-rw-r--r--drivers/media/video/mt20xx.h2
-rw-r--r--drivers/media/video/mt9m001.c2
-rw-r--r--drivers/media/video/ov511.h2
-rw-r--r--drivers/media/video/pxa_camera.c28
-rw-r--r--drivers/media/video/se401.c6
-rw-r--r--drivers/media/video/soc_camera.c8
-rw-r--r--drivers/media/video/stk-webcam.c2
-rw-r--r--drivers/media/video/stv680.c2
-rw-r--r--drivers/media/video/tcm825x.c2
-rw-r--r--drivers/media/video/tda8290.c6
-rw-r--r--drivers/media/video/tda8290.h4
-rw-r--r--drivers/media/video/tda9840.c2
-rw-r--r--drivers/media/video/tda9887.h2
-rw-r--r--drivers/media/video/tea5761.h4
-rw-r--r--drivers/media/video/tea5767.h4
-rw-r--r--drivers/media/video/tea6415c.c2
-rw-r--r--drivers/media/video/tea6420.c2
-rw-r--r--drivers/media/video/tuner-simple.c2
-rw-r--r--drivers/media/video/tuner-simple.h2
-rw-r--r--drivers/media/video/tuner-xc2028.c28
-rw-r--r--drivers/media/video/tuner-xc2028.h2
-rw-r--r--drivers/media/video/videobuf-core.c2
-rw-r--r--drivers/media/video/videobuf-dma-sg.c4
-rw-r--r--drivers/media/video/videobuf-vmalloc.c2
-rw-r--r--drivers/media/video/videodev.c4
-rw-r--r--drivers/media/video/vivi.c22
-rw-r--r--drivers/media/video/w9966.c2
-rw-r--r--drivers/media/video/w9968cf.h6
-rw-r--r--drivers/media/video/zoran_driver.c4
32 files changed, 84 insertions, 84 deletions
diff --git a/drivers/media/video/cpia.h b/drivers/media/video/cpia.h
index 78392fb6f94e..5096058bf579 100644
--- a/drivers/media/video/cpia.h
+++ b/drivers/media/video/cpia.h
@@ -412,11 +412,11 @@ void cpia_unregister_camera(struct cam_data *cam);
412/* ErrorCode */ 412/* ErrorCode */
413#define ERROR_FLICKER_BELOW_MIN_EXP 0x01 /*flicker exposure got below minimum exposure */ 413#define ERROR_FLICKER_BELOW_MIN_EXP 0x01 /*flicker exposure got below minimum exposure */
414#define ALOG(fmt,args...) printk(fmt, ##args) 414#define ALOG(fmt,args...) printk(fmt, ##args)
415#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __FUNCTION__ , __LINE__ , ##args) 415#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __func__ , __LINE__ , ##args)
416 416
417#ifdef _CPIA_DEBUG_ 417#ifdef _CPIA_DEBUG_
418#define ADBG(fmt,args...) printk(fmt, jiffies, ##args) 418#define ADBG(fmt,args...) printk(fmt, jiffies, ##args)
419#define DBG(fmt,args...) ADBG(KERN_DEBUG __FILE__" (%ld):%s(%d):" fmt, __FUNCTION__, __LINE__ , ##args) 419#define DBG(fmt,args...) ADBG(KERN_DEBUG __FILE__" (%ld):%s(%d):" fmt, __func__, __LINE__ , ##args)
420#else 420#else
421#define DBG(fmn,args...) do {} while(0) 421#define DBG(fmn,args...) do {} while(0)
422#endif 422#endif
diff --git a/drivers/media/video/cpia_usb.c b/drivers/media/video/cpia_usb.c
index 9da4726eb9b9..ef1f89399983 100644
--- a/drivers/media/video/cpia_usb.c
+++ b/drivers/media/video/cpia_usb.c
@@ -170,7 +170,7 @@ static void cpia_usb_complete(struct urb *urb)
170 /* resubmit */ 170 /* resubmit */
171 urb->dev = ucpia->dev; 171 urb->dev = ucpia->dev;
172 if ((i = usb_submit_urb(urb, GFP_ATOMIC)) != 0) 172 if ((i = usb_submit_urb(urb, GFP_ATOMIC)) != 0)
173 printk(KERN_ERR "%s: usb_submit_urb ret %d\n", __FUNCTION__, i); 173 printk(KERN_ERR "%s: usb_submit_urb ret %d\n", __func__, i);
174} 174}
175 175
176static int cpia_usb_open(void *privdata) 176static int cpia_usb_open(void *privdata)
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index 7942bd078513..11c5fdedc23b 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -153,7 +153,7 @@ static int get_key_fusionhdtv(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
153 } 153 }
154 154
155 if(buf[0] !=0 || buf[1] !=0 || buf[2] !=0 || buf[3] != 0) 155 if(buf[0] !=0 || buf[1] !=0 || buf[2] !=0 || buf[3] != 0)
156 dprintk(2, "%s: 0x%2x 0x%2x 0x%2x 0x%2x\n", __FUNCTION__, 156 dprintk(2, "%s: 0x%2x 0x%2x 0x%2x 0x%2x\n", __func__,
157 buf[0], buf[1], buf[2], buf[3]); 157 buf[0], buf[1], buf[2], buf[3]);
158 158
159 /* no key pressed or signal from other ir remote */ 159 /* no key pressed or signal from other ir remote */
diff --git a/drivers/media/video/mt20xx.h b/drivers/media/video/mt20xx.h
index 5e9c825d2e91..aa848e14ce5e 100644
--- a/drivers/media/video/mt20xx.h
+++ b/drivers/media/video/mt20xx.h
@@ -29,7 +29,7 @@ static inline struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,
29 struct i2c_adapter* i2c_adap, 29 struct i2c_adapter* i2c_adap,
30 u8 i2c_addr) 30 u8 i2c_addr)
31{ 31{
32 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 32 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
33 return NULL; 33 return NULL;
34} 34}
35#endif 35#endif
diff --git a/drivers/media/video/mt9m001.c b/drivers/media/video/mt9m001.c
index 2ea133e8a625..3fb5f63df1e6 100644
--- a/drivers/media/video/mt9m001.c
+++ b/drivers/media/video/mt9m001.c
@@ -123,7 +123,7 @@ static int mt9m001_init(struct soc_camera_device *icd)
123 int ret; 123 int ret;
124 124
125 /* Disable chip, synchronous option update */ 125 /* Disable chip, synchronous option update */
126 dev_dbg(icd->vdev->dev, "%s\n", __FUNCTION__); 126 dev_dbg(icd->vdev->dev, "%s\n", __func__);
127 127
128 ret = reg_write(icd, MT9M001_RESET, 1); 128 ret = reg_write(icd, MT9M001_RESET, 1);
129 if (ret >= 0) 129 if (ret >= 0)
diff --git a/drivers/media/video/ov511.h b/drivers/media/video/ov511.h
index 18c64222dd11..1010e51189b7 100644
--- a/drivers/media/video/ov511.h
+++ b/drivers/media/video/ov511.h
@@ -12,7 +12,7 @@
12#ifdef OV511_DEBUG 12#ifdef OV511_DEBUG
13 #define PDEBUG(level, fmt, args...) \ 13 #define PDEBUG(level, fmt, args...) \
14 if (debug >= (level)) info("[%s:%d] " fmt, \ 14 if (debug >= (level)) info("[%s:%d] " fmt, \
15 __FUNCTION__, __LINE__ , ## args) 15 __func__, __LINE__ , ## args)
16#else 16#else
17 #define PDEBUG(level, fmt, args...) do {} while(0) 17 #define PDEBUG(level, fmt, args...) do {} while(0)
18#endif 18#endif
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index bef3c9c7902a..936db67a5b0f 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -148,7 +148,7 @@ static void free_buffer(struct videobuf_queue *vq, struct pxa_buffer *buf)
148 148
149 BUG_ON(in_interrupt()); 149 BUG_ON(in_interrupt());
150 150
151 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, 151 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
152 &buf->vb, buf->vb.baddr, buf->vb.bsize); 152 &buf->vb, buf->vb.baddr, buf->vb.bsize);
153 153
154 /* This waits until this buffer is out of danger, i.e., until it is no 154 /* This waits until this buffer is out of danger, i.e., until it is no
@@ -175,7 +175,7 @@ static int pxa_videobuf_prepare(struct videobuf_queue *vq,
175 struct pxa_buffer *buf = container_of(vb, struct pxa_buffer, vb); 175 struct pxa_buffer *buf = container_of(vb, struct pxa_buffer, vb);
176 int i, ret; 176 int i, ret;
177 177
178 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, 178 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
179 vb, vb->baddr, vb->bsize); 179 vb, vb->baddr, vb->bsize);
180 180
181 /* Added list head initialization on alloc */ 181 /* Added list head initialization on alloc */
@@ -281,7 +281,7 @@ static void pxa_videobuf_queue(struct videobuf_queue *vq,
281 int nents = dma->sglen; 281 int nents = dma->sglen;
282 unsigned long flags; 282 unsigned long flags;
283 283
284 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, 284 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
285 vb, vb->baddr, vb->bsize); 285 vb, vb->baddr, vb->bsize);
286 spin_lock_irqsave(&pcdev->lock, flags); 286 spin_lock_irqsave(&pcdev->lock, flags);
287 287
@@ -354,21 +354,21 @@ static void pxa_videobuf_release(struct videobuf_queue *vq,
354#ifdef DEBUG 354#ifdef DEBUG
355 struct soc_camera_device *icd = vq->priv_data; 355 struct soc_camera_device *icd = vq->priv_data;
356 356
357 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, 357 dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
358 vb, vb->baddr, vb->bsize); 358 vb, vb->baddr, vb->bsize);
359 359
360 switch (vb->state) { 360 switch (vb->state) {
361 case VIDEOBUF_ACTIVE: 361 case VIDEOBUF_ACTIVE:
362 dev_dbg(&icd->dev, "%s (active)\n", __FUNCTION__); 362 dev_dbg(&icd->dev, "%s (active)\n", __func__);
363 break; 363 break;
364 case VIDEOBUF_QUEUED: 364 case VIDEOBUF_QUEUED:
365 dev_dbg(&icd->dev, "%s (queued)\n", __FUNCTION__); 365 dev_dbg(&icd->dev, "%s (queued)\n", __func__);
366 break; 366 break;
367 case VIDEOBUF_PREPARED: 367 case VIDEOBUF_PREPARED:
368 dev_dbg(&icd->dev, "%s (prepared)\n", __FUNCTION__); 368 dev_dbg(&icd->dev, "%s (prepared)\n", __func__);
369 break; 369 break;
370 default: 370 default:
371 dev_dbg(&icd->dev, "%s (unknown)\n", __FUNCTION__); 371 dev_dbg(&icd->dev, "%s (unknown)\n", __func__);
372 break; 372 break;
373 } 373 }
374#endif 374#endif
@@ -408,7 +408,7 @@ static void pxa_camera_dma_irq_y(int channel, void *data)
408 vb = &pcdev->active->vb; 408 vb = &pcdev->active->vb;
409 buf = container_of(vb, struct pxa_buffer, vb); 409 buf = container_of(vb, struct pxa_buffer, vb);
410 WARN_ON(buf->inwork || list_empty(&vb->queue)); 410 WARN_ON(buf->inwork || list_empty(&vb->queue));
411 dev_dbg(pcdev->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, 411 dev_dbg(pcdev->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__,
412 vb, vb->baddr, vb->bsize); 412 vb, vb->baddr, vb->bsize);
413 413
414 /* _init is used to debug races, see comment in pxa_camera_reqbufs() */ 414 /* _init is used to debug races, see comment in pxa_camera_reqbufs() */
@@ -466,18 +466,18 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev)
466 pcdev, pdata); 466 pcdev, pdata);
467 467
468 if (pdata && pdata->init) { 468 if (pdata && pdata->init) {
469 dev_dbg(pcdev->dev, "%s: Init gpios\n", __FUNCTION__); 469 dev_dbg(pcdev->dev, "%s: Init gpios\n", __func__);
470 pdata->init(pcdev->dev); 470 pdata->init(pcdev->dev);
471 } 471 }
472 472
473 if (pdata && pdata->power) { 473 if (pdata && pdata->power) {
474 dev_dbg(pcdev->dev, "%s: Power on camera\n", __FUNCTION__); 474 dev_dbg(pcdev->dev, "%s: Power on camera\n", __func__);
475 pdata->power(pcdev->dev, 1); 475 pdata->power(pcdev->dev, 1);
476 } 476 }
477 477
478 if (pdata && pdata->reset) { 478 if (pdata && pdata->reset) {
479 dev_dbg(pcdev->dev, "%s: Releasing camera reset\n", 479 dev_dbg(pcdev->dev, "%s: Releasing camera reset\n",
480 __FUNCTION__); 480 __func__);
481 pdata->reset(pcdev->dev, 1); 481 pdata->reset(pcdev->dev, 1);
482 } 482 }
483 483
@@ -507,12 +507,12 @@ static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev)
507 507
508 if (board && board->reset) { 508 if (board && board->reset) {
509 dev_dbg(pcdev->dev, "%s: Asserting camera reset\n", 509 dev_dbg(pcdev->dev, "%s: Asserting camera reset\n",
510 __FUNCTION__); 510 __func__);
511 board->reset(pcdev->dev, 0); 511 board->reset(pcdev->dev, 0);
512 } 512 }
513 513
514 if (board && board->power) { 514 if (board && board->power) {
515 dev_dbg(pcdev->dev, "%s: Power off camera\n", __FUNCTION__); 515 dev_dbg(pcdev->dev, "%s: Power off camera\n", __func__);
516 board->power(pcdev->dev, 0); 516 board->power(pcdev->dev, 0);
517 } 517 }
518} 518}
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c
index 7b8cd30437c3..1cd629380f71 100644
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -300,10 +300,10 @@ static void se401_button_irq(struct urb *urb)
300 case -ENOENT: 300 case -ENOENT:
301 case -ESHUTDOWN: 301 case -ESHUTDOWN:
302 /* this urb is terminated, clean up */ 302 /* this urb is terminated, clean up */
303 dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status); 303 dbg("%s - urb shutting down with status: %d", __func__, urb->status);
304 return; 304 return;
305 default: 305 default:
306 dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status); 306 dbg("%s - nonzero urb status received: %d", __func__, urb->status);
307 goto exit; 307 goto exit;
308 } 308 }
309 309
@@ -315,7 +315,7 @@ exit:
315 status = usb_submit_urb (urb, GFP_ATOMIC); 315 status = usb_submit_urb (urb, GFP_ATOMIC);
316 if (status) 316 if (status)
317 err ("%s - usb_submit_urb failed with result %d", 317 err ("%s - usb_submit_urb failed with result %d",
318 __FUNCTION__, status); 318 __func__, status);
319} 319}
320 320
321static void se401_video_irq(struct urb *urb) 321static void se401_video_irq(struct urb *urb)
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index 1e921578804f..91a1251d904d 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -137,7 +137,7 @@ static int soc_camera_reqbufs(struct file *file, void *priv,
137 137
138 WARN_ON(priv != file->private_data); 138 WARN_ON(priv != file->private_data);
139 139
140 dev_dbg(&icd->dev, "%s: %d\n", __FUNCTION__, p->memory); 140 dev_dbg(&icd->dev, "%s: %d\n", __func__, p->memory);
141 141
142 ret = videobuf_reqbufs(&icf->vb_vidq, p); 142 ret = videobuf_reqbufs(&icf->vb_vidq, p);
143 if (ret < 0) 143 if (ret < 0)
@@ -453,7 +453,7 @@ static int soc_camera_streamon(struct file *file, void *priv,
453 453
454 WARN_ON(priv != file->private_data); 454 WARN_ON(priv != file->private_data);
455 455
456 dev_dbg(&icd->dev, "%s\n", __FUNCTION__); 456 dev_dbg(&icd->dev, "%s\n", __func__);
457 457
458 if (i != V4L2_BUF_TYPE_VIDEO_CAPTURE) 458 if (i != V4L2_BUF_TYPE_VIDEO_CAPTURE)
459 return -EINVAL; 459 return -EINVAL;
@@ -472,7 +472,7 @@ static int soc_camera_streamoff(struct file *file, void *priv,
472 472
473 WARN_ON(priv != file->private_data); 473 WARN_ON(priv != file->private_data);
474 474
475 dev_dbg(&icd->dev, "%s\n", __FUNCTION__); 475 dev_dbg(&icd->dev, "%s\n", __func__);
476 476
477 if (i != V4L2_BUF_TYPE_VIDEO_CAPTURE) 477 if (i != V4L2_BUF_TYPE_VIDEO_CAPTURE)
478 return -EINVAL; 478 return -EINVAL;
@@ -985,7 +985,7 @@ void soc_camera_video_stop(struct soc_camera_device *icd)
985{ 985{
986 struct video_device *vdev = icd->vdev; 986 struct video_device *vdev = icd->vdev;
987 987
988 dev_dbg(&icd->dev, "%s\n", __FUNCTION__); 988 dev_dbg(&icd->dev, "%s\n", __func__);
989 989
990 if (!icd->dev.parent || !vdev) 990 if (!icd->dev.parent || !vdev)
991 return; 991 return;
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c
index d2bf54194b63..9276ed997388 100644
--- a/drivers/media/video/stk-webcam.c
+++ b/drivers/media/video/stk-webcam.c
@@ -1100,7 +1100,7 @@ static int stk_setup_format(struct stk_camera *dev)
1100 && i < ARRAY_SIZE(stk_sizes)) 1100 && i < ARRAY_SIZE(stk_sizes))
1101 i++; 1101 i++;
1102 if (i == ARRAY_SIZE(stk_sizes)) { 1102 if (i == ARRAY_SIZE(stk_sizes)) {
1103 STK_ERROR("Something is broken in %s\n", __FUNCTION__); 1103 STK_ERROR("Something is broken in %s\n", __func__);
1104 return -EFAULT; 1104 return -EFAULT;
1105 } 1105 }
1106 /* This registers controls some timings, not sure of what. */ 1106 /* This registers controls some timings, not sure of what. */
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c
index 78730294454e..d7f130bedb5f 100644
--- a/drivers/media/video/stv680.c
+++ b/drivers/media/video/stv680.c
@@ -83,7 +83,7 @@ static unsigned int debug;
83#define PDEBUG(level, fmt, args...) \ 83#define PDEBUG(level, fmt, args...) \
84 do { \ 84 do { \
85 if (debug >= level) \ 85 if (debug >= level) \
86 info("[%s:%d] " fmt, __FUNCTION__, __LINE__ , ## args); \ 86 info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \
87 } while (0) 87 } while (0)
88 88
89 89
diff --git a/drivers/media/video/tcm825x.c b/drivers/media/video/tcm825x.c
index fb895f6684a3..6943b447a1bd 100644
--- a/drivers/media/video/tcm825x.c
+++ b/drivers/media/video/tcm825x.c
@@ -906,7 +906,7 @@ static int __init tcm825x_init(void)
906 rval = i2c_add_driver(&tcm825x_i2c_driver); 906 rval = i2c_add_driver(&tcm825x_i2c_driver);
907 if (rval) 907 if (rval)
908 printk(KERN_INFO "%s: failed registering " TCM825X_NAME "\n", 908 printk(KERN_INFO "%s: failed registering " TCM825X_NAME "\n",
909 __FUNCTION__); 909 __func__);
910 910
911 return rval; 911 return rval;
912} 912}
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index 89afb19c9468..0ebb5b525e57 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -363,7 +363,7 @@ static void tda8295_set_params(struct dvb_frontend *fe,
363 363
364 set_audio(fe, params); 364 set_audio(fe, params);
365 365
366 tuner_dbg("%s: freq = %d\n", __FUNCTION__, params->frequency); 366 tuner_dbg("%s: freq = %d\n", __func__, params->frequency);
367 367
368 tda8295_power(fe, 1); 368 tda8295_power(fe, 1);
369 tda8295_agc1_out(fe, 1); 369 tda8295_agc1_out(fe, 1);
@@ -613,7 +613,7 @@ static int tda8290_probe(struct tuner_i2c_props *i2c_props)
613 if (tda8290_id[1] == TDA8290_ID) { 613 if (tda8290_id[1] == TDA8290_ID) {
614 if (debug) 614 if (debug)
615 printk(KERN_DEBUG "%s: tda8290 detected @ %d-%04x\n", 615 printk(KERN_DEBUG "%s: tda8290 detected @ %d-%04x\n",
616 __FUNCTION__, i2c_adapter_id(i2c_props->adap), 616 __func__, i2c_adapter_id(i2c_props->adap),
617 i2c_props->addr); 617 i2c_props->addr);
618 return 0; 618 return 0;
619 } 619 }
@@ -633,7 +633,7 @@ static int tda8295_probe(struct tuner_i2c_props *i2c_props)
633 if (tda8295_id[1] == TDA8295_ID) { 633 if (tda8295_id[1] == TDA8295_ID) {
634 if (debug) 634 if (debug)
635 printk(KERN_DEBUG "%s: tda8295 detected @ %d-%04x\n", 635 printk(KERN_DEBUG "%s: tda8295 detected @ %d-%04x\n",
636 __FUNCTION__, i2c_adapter_id(i2c_props->adap), 636 __func__, i2c_adapter_id(i2c_props->adap),
637 i2c_props->addr); 637 i2c_props->addr);
638 return 0; 638 return 0;
639 } 639 }
diff --git a/drivers/media/video/tda8290.h b/drivers/media/video/tda8290.h
index 9dd8b73eb8c6..d3bbf276a469 100644
--- a/drivers/media/video/tda8290.h
+++ b/drivers/media/video/tda8290.h
@@ -39,7 +39,7 @@ extern struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
39#else 39#else
40static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr) 40static inline int tda829x_probe(struct i2c_adapter *i2c_adap, u8 i2c_addr)
41{ 41{
42 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 42 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
43 return -EINVAL; 43 return -EINVAL;
44} 44}
45 45
@@ -49,7 +49,7 @@ static inline struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
49 struct tda829x_config *cfg) 49 struct tda829x_config *cfg)
50{ 50{
51 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 51 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
52 __FUNCTION__); 52 __func__);
53 return NULL; 53 return NULL;
54} 54}
55#endif 55#endif
diff --git a/drivers/media/video/tda9840.c b/drivers/media/video/tda9840.c
index 269761ce84a5..0cee00242782 100644
--- a/drivers/media/video/tda9840.c
+++ b/drivers/media/video/tda9840.c
@@ -35,7 +35,7 @@ static int debug; /* insmod parameter */
35module_param(debug, int, 0644); 35module_param(debug, int, 0644);
36MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 36MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off).");
37#define dprintk(args...) \ 37#define dprintk(args...) \
38 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __FUNCTION__, __LINE__); printk(args); } } while (0) 38 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __func__, __LINE__); printk(args); } } while (0)
39 39
40#define SWITCH 0x00 40#define SWITCH 0x00
41#define LEVEL_ADJUST 0x02 41#define LEVEL_ADJUST 0x02
diff --git a/drivers/media/video/tda9887.h b/drivers/media/video/tda9887.h
index 8f873a8e6ed2..be49dcbfc70e 100644
--- a/drivers/media/video/tda9887.h
+++ b/drivers/media/video/tda9887.h
@@ -30,7 +30,7 @@ static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
30 struct i2c_adapter *i2c_adap, 30 struct i2c_adapter *i2c_adap,
31 u8 i2c_addr) 31 u8 i2c_addr)
32{ 32{
33 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 33 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
34 return NULL; 34 return NULL;
35} 35}
36#endif 36#endif
diff --git a/drivers/media/video/tea5761.h b/drivers/media/video/tea5761.h
index 73a03b427843..8eb62722b988 100644
--- a/drivers/media/video/tea5761.h
+++ b/drivers/media/video/tea5761.h
@@ -31,7 +31,7 @@ static inline int tea5761_autodetection(struct i2c_adapter* i2c_adap,
31 u8 i2c_addr) 31 u8 i2c_addr)
32{ 32{
33 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 33 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
34 __FUNCTION__); 34 __func__);
35 return -EINVAL; 35 return -EINVAL;
36} 36}
37 37
@@ -39,7 +39,7 @@ static inline struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
39 struct i2c_adapter* i2c_adap, 39 struct i2c_adapter* i2c_adap,
40 u8 i2c_addr) 40 u8 i2c_addr)
41{ 41{
42 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 42 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
43 return NULL; 43 return NULL;
44} 44}
45#endif 45#endif
diff --git a/drivers/media/video/tea5767.h b/drivers/media/video/tea5767.h
index a44451f61145..7b547c092e25 100644
--- a/drivers/media/video/tea5767.h
+++ b/drivers/media/video/tea5767.h
@@ -50,7 +50,7 @@ static inline int tea5767_autodetection(struct i2c_adapter* i2c_adap,
50 u8 i2c_addr) 50 u8 i2c_addr)
51{ 51{
52 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 52 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
53 __FUNCTION__); 53 __func__);
54 return -EINVAL; 54 return -EINVAL;
55} 55}
56 56
@@ -58,7 +58,7 @@ static inline struct dvb_frontend *tea5767_attach(struct dvb_frontend *fe,
58 struct i2c_adapter* i2c_adap, 58 struct i2c_adapter* i2c_adap,
59 u8 i2c_addr) 59 u8 i2c_addr)
60{ 60{
61 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 61 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
62 return NULL; 62 return NULL;
63} 63}
64#endif 64#endif
diff --git a/drivers/media/video/tea6415c.c b/drivers/media/video/tea6415c.c
index f22620e1872e..9513d8611e87 100644
--- a/drivers/media/video/tea6415c.c
+++ b/drivers/media/video/tea6415c.c
@@ -37,7 +37,7 @@ static int debug; /* insmod parameter */
37module_param(debug, int, 0644); 37module_param(debug, int, 0644);
38MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 38MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off).");
39#define dprintk(args...) \ 39#define dprintk(args...) \
40 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __FUNCTION__, __LINE__); printk(args); } } while (0) 40 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __func__, __LINE__); printk(args); } } while (0)
41 41
42#define TEA6415C_NUM_INPUTS 8 42#define TEA6415C_NUM_INPUTS 8
43#define TEA6415C_NUM_OUTPUTS 6 43#define TEA6415C_NUM_OUTPUTS 6
diff --git a/drivers/media/video/tea6420.c b/drivers/media/video/tea6420.c
index dc0f0405f4c9..7fd53367c07c 100644
--- a/drivers/media/video/tea6420.c
+++ b/drivers/media/video/tea6420.c
@@ -37,7 +37,7 @@ static int debug; /* insmod parameter */
37module_param(debug, int, 0644); 37module_param(debug, int, 0644);
38MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 38MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off).");
39#define dprintk(args...) \ 39#define dprintk(args...) \
40 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __FUNCTION__, __LINE__); printk(args); } } while (0) 40 do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME, __func__, __LINE__); printk(args); } } while (0)
41 41
42/* addresses to scan, found only at 0x4c and/or 0x4d (7-Bit) */ 42/* addresses to scan, found only at 0x4c and/or 0x4d (7-Bit) */
43static unsigned short normal_i2c[] = { I2C_ADDR_TEA6420_1, I2C_ADDR_TEA6420_2, I2C_CLIENT_END }; 43static unsigned short normal_i2c[] = { I2C_ADDR_TEA6420_1, I2C_ADDR_TEA6420_2, I2C_CLIENT_END };
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index 8d6d2c803f92..be8d903171b7 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -999,7 +999,7 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
999 999
1000 if (type >= tuner_count) { 1000 if (type >= tuner_count) {
1001 printk(KERN_WARNING "%s: invalid tuner type: %d (max: %d)\n", 1001 printk(KERN_WARNING "%s: invalid tuner type: %d (max: %d)\n",
1002 __FUNCTION__, type, tuner_count-1); 1002 __func__, type, tuner_count-1);
1003 return NULL; 1003 return NULL;
1004 } 1004 }
1005 1005
diff --git a/drivers/media/video/tuner-simple.h b/drivers/media/video/tuner-simple.h
index bf425f325f87..e46cf0121e03 100644
--- a/drivers/media/video/tuner-simple.h
+++ b/drivers/media/video/tuner-simple.h
@@ -31,7 +31,7 @@ static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
31 u8 i2c_addr, 31 u8 i2c_addr,
32 unsigned int type) 32 unsigned int type)
33{ 33{
34 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 34 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
35 return NULL; 35 return NULL;
36} 36}
37#endif 37#endif
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index 098a9956a2bc..62b5de231e0d 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -135,7 +135,7 @@ static unsigned int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val)
135 unsigned char buf[2]; 135 unsigned char buf[2];
136 unsigned char ibuf[2]; 136 unsigned char ibuf[2];
137 137
138 tuner_dbg("%s %04x called\n", __FUNCTION__, reg); 138 tuner_dbg("%s %04x called\n", __func__, reg);
139 139
140 buf[0] = reg >> 8; 140 buf[0] = reg >> 8;
141 buf[1] = (unsigned char) reg; 141 buf[1] = (unsigned char) reg;
@@ -260,7 +260,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
260 char name[33]; 260 char name[33];
261 char *fname; 261 char *fname;
262 262
263 tuner_dbg("%s called\n", __FUNCTION__); 263 tuner_dbg("%s called\n", __func__);
264 264
265 if (!firmware_name[0]) 265 if (!firmware_name[0])
266 fname = priv->ctrl.fname; 266 fname = priv->ctrl.fname;
@@ -405,7 +405,7 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,
405 int i, best_i = -1, best_nr_matches = 0; 405 int i, best_i = -1, best_nr_matches = 0;
406 unsigned int ign_firm_type_mask = 0; 406 unsigned int ign_firm_type_mask = 0;
407 407
408 tuner_dbg("%s called, want type=", __FUNCTION__); 408 tuner_dbg("%s called, want type=", __func__);
409 if (debug) { 409 if (debug) {
410 dump_firm_type(type); 410 dump_firm_type(type);
411 printk("(%x), id %016llx.\n", type, (unsigned long long)*id); 411 printk("(%x), id %016llx.\n", type, (unsigned long long)*id);
@@ -491,7 +491,7 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
491 int pos, rc; 491 int pos, rc;
492 unsigned char *p, *endp, buf[priv->ctrl.max_len]; 492 unsigned char *p, *endp, buf[priv->ctrl.max_len];
493 493
494 tuner_dbg("%s called\n", __FUNCTION__); 494 tuner_dbg("%s called\n", __func__);
495 495
496 pos = seek_firmware(fe, type, id); 496 pos = seek_firmware(fe, type, id);
497 if (pos < 0) 497 if (pos < 0)
@@ -594,7 +594,7 @@ static int load_scode(struct dvb_frontend *fe, unsigned int type,
594 int pos, rc; 594 int pos, rc;
595 unsigned char *p; 595 unsigned char *p;
596 596
597 tuner_dbg("%s called\n", __FUNCTION__); 597 tuner_dbg("%s called\n", __func__);
598 598
599 if (!int_freq) { 599 if (!int_freq) {
600 pos = seek_firmware(fe, type, id); 600 pos = seek_firmware(fe, type, id);
@@ -658,7 +658,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
658 u16 version, hwmodel; 658 u16 version, hwmodel;
659 v4l2_std_id std0; 659 v4l2_std_id std0;
660 660
661 tuner_dbg("%s called\n", __FUNCTION__); 661 tuner_dbg("%s called\n", __func__);
662 662
663 if (!priv->firm) { 663 if (!priv->firm) {
664 if (!priv->ctrl.fname) { 664 if (!priv->ctrl.fname) {
@@ -832,7 +832,7 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
832 u16 frq_lock, signal = 0; 832 u16 frq_lock, signal = 0;
833 int rc; 833 int rc;
834 834
835 tuner_dbg("%s called\n", __FUNCTION__); 835 tuner_dbg("%s called\n", __func__);
836 836
837 mutex_lock(&priv->lock); 837 mutex_lock(&priv->lock);
838 838
@@ -869,7 +869,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
869 unsigned char buf[4]; 869 unsigned char buf[4];
870 u32 div, offset = 0; 870 u32 div, offset = 0;
871 871
872 tuner_dbg("%s called\n", __FUNCTION__); 872 tuner_dbg("%s called\n", __func__);
873 873
874 mutex_lock(&priv->lock); 874 mutex_lock(&priv->lock);
875 875
@@ -952,7 +952,7 @@ static int xc2028_set_analog_freq(struct dvb_frontend *fe,
952 struct xc2028_data *priv = fe->tuner_priv; 952 struct xc2028_data *priv = fe->tuner_priv;
953 unsigned int type=0; 953 unsigned int type=0;
954 954
955 tuner_dbg("%s called\n", __FUNCTION__); 955 tuner_dbg("%s called\n", __func__);
956 956
957 if (p->mode == V4L2_TUNER_RADIO) { 957 if (p->mode == V4L2_TUNER_RADIO) {
958 type |= FM; 958 type |= FM;
@@ -985,7 +985,7 @@ static int xc2028_set_params(struct dvb_frontend *fe,
985 fe_bandwidth_t bw = BANDWIDTH_8_MHZ; 985 fe_bandwidth_t bw = BANDWIDTH_8_MHZ;
986 u16 demod = 0; 986 u16 demod = 0;
987 987
988 tuner_dbg("%s called\n", __FUNCTION__); 988 tuner_dbg("%s called\n", __func__);
989 989
990 if (priv->ctrl.d2633) 990 if (priv->ctrl.d2633)
991 type |= D2633; 991 type |= D2633;
@@ -1055,7 +1055,7 @@ static int xc2028_sleep(struct dvb_frontend *fe)
1055 struct xc2028_data *priv = fe->tuner_priv; 1055 struct xc2028_data *priv = fe->tuner_priv;
1056 int rc = 0; 1056 int rc = 0;
1057 1057
1058 tuner_dbg("%s called\n", __FUNCTION__); 1058 tuner_dbg("%s called\n", __func__);
1059 1059
1060 mutex_lock(&priv->lock); 1060 mutex_lock(&priv->lock);
1061 1061
@@ -1076,7 +1076,7 @@ static int xc2028_dvb_release(struct dvb_frontend *fe)
1076{ 1076{
1077 struct xc2028_data *priv = fe->tuner_priv; 1077 struct xc2028_data *priv = fe->tuner_priv;
1078 1078
1079 tuner_dbg("%s called\n", __FUNCTION__); 1079 tuner_dbg("%s called\n", __func__);
1080 1080
1081 mutex_lock(&xc2028_list_mutex); 1081 mutex_lock(&xc2028_list_mutex);
1082 1082
@@ -1101,7 +1101,7 @@ static int xc2028_get_frequency(struct dvb_frontend *fe, u32 *frequency)
1101{ 1101{
1102 struct xc2028_data *priv = fe->tuner_priv; 1102 struct xc2028_data *priv = fe->tuner_priv;
1103 1103
1104 tuner_dbg("%s called\n", __FUNCTION__); 1104 tuner_dbg("%s called\n", __func__);
1105 1105
1106 *frequency = priv->frequency; 1106 *frequency = priv->frequency;
1107 1107
@@ -1114,7 +1114,7 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
1114 struct xc2028_ctrl *p = priv_cfg; 1114 struct xc2028_ctrl *p = priv_cfg;
1115 int rc = 0; 1115 int rc = 0;
1116 1116
1117 tuner_dbg("%s called\n", __FUNCTION__); 1117 tuner_dbg("%s called\n", __func__);
1118 1118
1119 mutex_lock(&priv->lock); 1119 mutex_lock(&priv->lock);
1120 1120
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h
index 3eb8420379a4..612e490634d0 100644
--- a/drivers/media/video/tuner-xc2028.h
+++ b/drivers/media/video/tuner-xc2028.h
@@ -55,7 +55,7 @@ static inline struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe,
55 struct xc2028_config *cfg) 55 struct xc2028_config *cfg)
56{ 56{
57 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n", 57 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
58 __FUNCTION__); 58 __func__);
59 return NULL; 59 return NULL;
60} 60}
61#endif 61#endif
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 3ab556093ca7..37ddbed8e167 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -970,7 +970,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q,
970 970
971 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); 971 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS);
972 972
973 dprintk(2, "%s\n", __FUNCTION__); 973 dprintk(2, "%s\n", __func__);
974 mutex_lock(&q->vb_lock); 974 mutex_lock(&q->vb_lock);
975 retval = -EBUSY; 975 retval = -EBUSY;
976 if (q->streaming) 976 if (q->streaming)
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index e6ce99ff7fd1..440c1a8e9c1f 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -252,7 +252,7 @@ int videobuf_dma_map(struct videobuf_queue* q, struct videobuf_dmabuf *dma)
252 dma->nr_pages, dma->direction); 252 dma->nr_pages, dma->direction);
253 if (0 == dma->sglen) { 253 if (0 == dma->sglen) {
254 printk(KERN_WARNING 254 printk(KERN_WARNING
255 "%s: videobuf_map_sg failed\n",__FUNCTION__); 255 "%s: videobuf_map_sg failed\n",__func__);
256 kfree(dma->sglist); 256 kfree(dma->sglist);
257 dma->sglist = NULL; 257 dma->sglist = NULL;
258 dma->sglen = 0; 258 dma->sglen = 0;
@@ -430,7 +430,7 @@ static void *__videobuf_alloc(size_t size)
430 videobuf_dma_init(&mem->dma); 430 videobuf_dma_init(&mem->dma);
431 431
432 dprintk(1,"%s: allocated at %p(%ld+%ld) & %p(%ld)\n", 432 dprintk(1,"%s: allocated at %p(%ld+%ld) & %p(%ld)\n",
433 __FUNCTION__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb), 433 __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),
434 mem,(long)sizeof(*mem)); 434 mem,(long)sizeof(*mem));
435 435
436 return vb; 436 return vb;
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index e23335f2919d..9eb7982988a6 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -114,7 +114,7 @@ static void *__videobuf_alloc(size_t size)
114 mem->magic=MAGIC_VMAL_MEM; 114 mem->magic=MAGIC_VMAL_MEM;
115 115
116 dprintk(1,"%s: allocated at %p(%ld+%ld) & %p(%ld)\n", 116 dprintk(1,"%s: allocated at %p(%ld+%ld) & %p(%ld)\n",
117 __FUNCTION__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb), 117 __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),
118 mem,(long)sizeof(*mem)); 118 mem,(long)sizeof(*mem));
119 119
120 return vb; 120 return vb;
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 0d9b63762a48..0bf056622d6a 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -2019,7 +2019,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
2019 break; 2019 break;
2020 default: 2020 default:
2021 printk(KERN_ERR "%s called with unknown type: %d\n", 2021 printk(KERN_ERR "%s called with unknown type: %d\n",
2022 __FUNCTION__, type); 2022 __func__, type);
2023 return -1; 2023 return -1;
2024 } 2024 }
2025 2025
@@ -2057,7 +2057,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
2057 ret = device_register(&vfd->class_dev); 2057 ret = device_register(&vfd->class_dev);
2058 if (ret < 0) { 2058 if (ret < 0) {
2059 printk(KERN_ERR "%s: device_register failed\n", 2059 printk(KERN_ERR "%s: device_register failed\n",
2060 __FUNCTION__); 2060 __func__);
2061 goto fail_minor; 2061 goto fail_minor;
2062 } 2062 }
2063 2063
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 8353deb8a1d4..17eb3ec5d704 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -426,7 +426,7 @@ static void vivi_sleep(struct vivi_fh *fh)
426 int timeout; 426 int timeout;
427 DECLARE_WAITQUEUE(wait, current); 427 DECLARE_WAITQUEUE(wait, current);
428 428
429 dprintk(dev, 1, "%s dma_q=0x%08lx\n", __FUNCTION__, 429 dprintk(dev, 1, "%s dma_q=0x%08lx\n", __func__,
430 (unsigned long)dma_q); 430 (unsigned long)dma_q);
431 431
432 add_wait_queue(&dma_q->wq, &wait); 432 add_wait_queue(&dma_q->wq, &wait);
@@ -472,7 +472,7 @@ static int vivi_start_thread(struct vivi_fh *fh)
472 dma_q->frame = 0; 472 dma_q->frame = 0;
473 dma_q->ini_jiffies = jiffies; 473 dma_q->ini_jiffies = jiffies;
474 474
475 dprintk(dev, 1, "%s\n", __FUNCTION__); 475 dprintk(dev, 1, "%s\n", __func__);
476 476
477 dma_q->kthread = kthread_run(vivi_thread, fh, "vivi"); 477 dma_q->kthread = kthread_run(vivi_thread, fh, "vivi");
478 478
@@ -483,7 +483,7 @@ static int vivi_start_thread(struct vivi_fh *fh)
483 /* Wakes thread */ 483 /* Wakes thread */
484 wake_up_interruptible(&dma_q->wq); 484 wake_up_interruptible(&dma_q->wq);
485 485
486 dprintk(dev, 1, "returning from %s\n", __FUNCTION__); 486 dprintk(dev, 1, "returning from %s\n", __func__);
487 return 0; 487 return 0;
488} 488}
489 489
@@ -491,7 +491,7 @@ static void vivi_stop_thread(struct vivi_dmaqueue *dma_q)
491{ 491{
492 struct vivi_dev *dev = container_of(dma_q, struct vivi_dev, vidq); 492 struct vivi_dev *dev = container_of(dma_q, struct vivi_dev, vidq);
493 493
494 dprintk(dev, 1, "%s\n", __FUNCTION__); 494 dprintk(dev, 1, "%s\n", __func__);
495 /* shutdown control thread */ 495 /* shutdown control thread */
496 if (dma_q->kthread) { 496 if (dma_q->kthread) {
497 kthread_stop(dma_q->kthread); 497 kthread_stop(dma_q->kthread);
@@ -516,7 +516,7 @@ buffer_setup(struct videobuf_queue *vq, unsigned int *count, unsigned int *size)
516 while (*size * *count > vid_limit * 1024 * 1024) 516 while (*size * *count > vid_limit * 1024 * 1024)
517 (*count)--; 517 (*count)--;
518 518
519 dprintk(dev, 1, "%s, count=%d, size=%d\n", __FUNCTION__, 519 dprintk(dev, 1, "%s, count=%d, size=%d\n", __func__,
520 *count, *size); 520 *count, *size);
521 521
522 return 0; 522 return 0;
@@ -527,7 +527,7 @@ static void free_buffer(struct videobuf_queue *vq, struct vivi_buffer *buf)
527 struct vivi_fh *fh = vq->priv_data; 527 struct vivi_fh *fh = vq->priv_data;
528 struct vivi_dev *dev = fh->dev; 528 struct vivi_dev *dev = fh->dev;
529 529
530 dprintk(dev, 1, "%s, state: %i\n", __FUNCTION__, buf->vb.state); 530 dprintk(dev, 1, "%s, state: %i\n", __func__, buf->vb.state);
531 531
532 if (in_interrupt()) 532 if (in_interrupt())
533 BUG(); 533 BUG();
@@ -548,7 +548,7 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
548 struct vivi_buffer *buf = container_of(vb, struct vivi_buffer, vb); 548 struct vivi_buffer *buf = container_of(vb, struct vivi_buffer, vb);
549 int rc; 549 int rc;
550 550
551 dprintk(dev, 1, "%s, field=%d\n", __FUNCTION__, field); 551 dprintk(dev, 1, "%s, field=%d\n", __func__, field);
552 552
553 BUG_ON(NULL == fh->fmt); 553 BUG_ON(NULL == fh->fmt);
554 554
@@ -589,7 +589,7 @@ buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
589 struct vivi_dev *dev = fh->dev; 589 struct vivi_dev *dev = fh->dev;
590 struct vivi_dmaqueue *vidq = &dev->vidq; 590 struct vivi_dmaqueue *vidq = &dev->vidq;
591 591
592 dprintk(dev, 1, "%s\n", __FUNCTION__); 592 dprintk(dev, 1, "%s\n", __func__);
593 593
594 buf->vb.state = VIDEOBUF_QUEUED; 594 buf->vb.state = VIDEOBUF_QUEUED;
595 list_add_tail(&buf->vb.queue, &vidq->active); 595 list_add_tail(&buf->vb.queue, &vidq->active);
@@ -602,7 +602,7 @@ static void buffer_release(struct videobuf_queue *vq,
602 struct vivi_fh *fh = vq->priv_data; 602 struct vivi_fh *fh = vq->priv_data;
603 struct vivi_dev *dev = (struct vivi_dev *)fh->dev; 603 struct vivi_dev *dev = (struct vivi_dev *)fh->dev;
604 604
605 dprintk(dev, 1, "%s\n", __FUNCTION__); 605 dprintk(dev, 1, "%s\n", __func__);
606 606
607 free_buffer(vq, buf); 607 free_buffer(vq, buf);
608} 608}
@@ -718,7 +718,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv,
718 mutex_lock(&q->vb_lock); 718 mutex_lock(&q->vb_lock);
719 719
720 if (videobuf_queue_is_busy(&fh->vb_vidq)) { 720 if (videobuf_queue_is_busy(&fh->vb_vidq)) {
721 dprintk(fh->dev, 1, "%s queue busy\n", __FUNCTION__); 721 dprintk(fh->dev, 1, "%s queue busy\n", __func__);
722 ret = -EBUSY; 722 ret = -EBUSY;
723 goto out; 723 goto out;
724 } 724 }
@@ -974,7 +974,7 @@ vivi_poll(struct file *file, struct poll_table_struct *wait)
974 struct vivi_dev *dev = fh->dev; 974 struct vivi_dev *dev = fh->dev;
975 struct videobuf_queue *q = &fh->vb_vidq; 975 struct videobuf_queue *q = &fh->vb_vidq;
976 976
977 dprintk(dev, 1, "%s\n", __FUNCTION__); 977 dprintk(dev, 1, "%s\n", __func__);
978 978
979 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type) 979 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type)
980 return POLLERR; 980 return POLLERR;
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index cdb396d9203c..33f702698a56 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -64,7 +64,7 @@
64/*#define DEBUG*/ /* Undef me for production */ 64/*#define DEBUG*/ /* Undef me for production */
65 65
66#ifdef DEBUG 66#ifdef DEBUG
67#define DPRINTF(x, a...) printk(KERN_DEBUG "W9966: %s(): "x, __FUNCTION__ , ##a) 67#define DPRINTF(x, a...) printk(KERN_DEBUG "W9966: %s(): "x, __func__ , ##a)
68#else 68#else
69#define DPRINTF(x...) 69#define DPRINTF(x...)
70#endif 70#endif
diff --git a/drivers/media/video/w9968cf.h b/drivers/media/video/w9968cf.h
index ec7696e8f1fa..3c95316bc030 100644
--- a/drivers/media/video/w9968cf.h
+++ b/drivers/media/video/w9968cf.h
@@ -298,7 +298,7 @@ struct w9968cf_device {
298 dev_warn(&cam->dev, fmt "\n", ## args); \ 298 dev_warn(&cam->dev, fmt "\n", ## args); \
299 else if ((level) >= 5) \ 299 else if ((level) >= 5) \
300 dev_info(&cam->dev, "[%s:%d] " fmt "\n", \ 300 dev_info(&cam->dev, "[%s:%d] " fmt "\n", \
301 __FUNCTION__, __LINE__ , ## args); \ 301 __func__, __LINE__ , ## args); \
302 } \ 302 } \
303} 303}
304/* For generic kernel (not device specific) messages */ 304/* For generic kernel (not device specific) messages */
@@ -309,7 +309,7 @@ struct w9968cf_device {
309 if ((level) >= 1 && (level) <= 4) \ 309 if ((level) >= 1 && (level) <= 4) \
310 pr_info("w9968cf: " fmt "\n", ## args); \ 310 pr_info("w9968cf: " fmt "\n", ## args); \
311 else if ((level) >= 5) \ 311 else if ((level) >= 5) \
312 pr_debug("w9968cf: [%s:%d] " fmt "\n", __FUNCTION__, \ 312 pr_debug("w9968cf: [%s:%d] " fmt "\n", __func__, \
313 __LINE__ , ## args); \ 313 __LINE__ , ## args); \
314 } \ 314 } \
315} 315}
@@ -321,7 +321,7 @@ struct w9968cf_device {
321 321
322#undef PDBG 322#undef PDBG
323#define PDBG(fmt, args...) \ 323#define PDBG(fmt, args...) \
324dev_info(&cam->dev, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__ , ## args); 324dev_info(&cam->dev, "[%s:%d] " fmt "\n", __func__, __LINE__ , ## args);
325 325
326#undef PDBGG 326#undef PDBGG
327#define PDBGG(fmt, args...) do {;} while(0); /* nothing: it's a placeholder */ 327#define PDBGG(fmt, args...) do {;} while(0); /* nothing: it's a placeholder */
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c
index 8c0a379071e5..1a002eaeb06c 100644
--- a/drivers/media/video/zoran_driver.c
+++ b/drivers/media/video/zoran_driver.c
@@ -4247,7 +4247,7 @@ zoran_poll (struct file *file,
4247 dprintk(3, 4247 dprintk(3,
4248 KERN_DEBUG 4248 KERN_DEBUG
4249 "%s: %s() raw - active=%c, sync_tail=%lu/%c, pend_tail=%lu, pend_head=%lu\n", 4249 "%s: %s() raw - active=%c, sync_tail=%lu/%c, pend_tail=%lu, pend_head=%lu\n",
4250 ZR_DEVNAME(zr), __FUNCTION__, 4250 ZR_DEVNAME(zr), __func__,
4251 "FAL"[fh->v4l_buffers.active], zr->v4l_sync_tail, 4251 "FAL"[fh->v4l_buffers.active], zr->v4l_sync_tail,
4252 "UPMD"[zr->v4l_buffers.buffer[frame].state], 4252 "UPMD"[zr->v4l_buffers.buffer[frame].state],
4253 zr->v4l_pend_tail, zr->v4l_pend_head); 4253 zr->v4l_pend_tail, zr->v4l_pend_head);
@@ -4269,7 +4269,7 @@ zoran_poll (struct file *file,
4269 dprintk(3, 4269 dprintk(3,
4270 KERN_DEBUG 4270 KERN_DEBUG
4271 "%s: %s() jpg - active=%c, que_tail=%lu/%c, que_head=%lu, dma=%lu/%lu\n", 4271 "%s: %s() jpg - active=%c, que_tail=%lu/%c, que_head=%lu, dma=%lu/%lu\n",
4272 ZR_DEVNAME(zr), __FUNCTION__, 4272 ZR_DEVNAME(zr), __func__,
4273 "FAL"[fh->jpg_buffers.active], zr->jpg_que_tail, 4273 "FAL"[fh->jpg_buffers.active], zr->jpg_que_tail,
4274 "UPMD"[zr->jpg_buffers.buffer[frame].state], 4274 "UPMD"[zr->jpg_buffers.buffer[frame].state],
4275 zr->jpg_que_head, zr->jpg_dma_tail, zr->jpg_dma_head); 4275 zr->jpg_que_head, zr->jpg_dma_tail, zr->jpg_dma_head);