aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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:58 -0400
commit46b4f7c176a2dd4c60ddb7c80bd09ea2f3220674 (patch)
tree0fd25c1ebcc050ccea9553afa645da293f31110e /drivers
parent0592e8d3485c4976eaa6db8084e00b0132a34d7e (diff)
V4L/DVB (7512): media/dvb/dvb-core replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/dvb-core/dmxdev.c10
-rw-r--r--drivers/media/dvb/dvb-core/dvb_ca_en50221.c36
-rw-r--r--drivers/media/dvb/dvb-core/dvb_demux.c4
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c30
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.c30
-rw-r--r--drivers/media/dvb/dvb-core/dvbdev.c4
6 files changed, 57 insertions, 57 deletions
diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c
index 716735f03f55..3415a3bb363c 100644
--- a/drivers/media/dvb/dvb-core/dmxdev.c
+++ b/drivers/media/dvb/dvb-core/dmxdev.c
@@ -126,7 +126,7 @@ static int dvb_dvr_open(struct inode *inode, struct file *file)
126 struct dmxdev *dmxdev = dvbdev->priv; 126 struct dmxdev *dmxdev = dvbdev->priv;
127 struct dmx_frontend *front; 127 struct dmx_frontend *front;
128 128
129 dprintk("function : %s\n", __FUNCTION__); 129 dprintk("function : %s\n", __func__);
130 130
131 if (mutex_lock_interruptible(&dmxdev->mutex)) 131 if (mutex_lock_interruptible(&dmxdev->mutex))
132 return -ERESTARTSYS; 132 return -ERESTARTSYS;
@@ -551,7 +551,7 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
551 dvb_dmxdev_section_callback); 551 dvb_dmxdev_section_callback);
552 if (ret < 0) { 552 if (ret < 0) {
553 printk("DVB (%s): could not alloc feed\n", 553 printk("DVB (%s): could not alloc feed\n",
554 __FUNCTION__); 554 __func__);
555 return ret; 555 return ret;
556 } 556 }
557 557
@@ -559,7 +559,7 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
559 (para->flags & DMX_CHECK_CRC) ? 1 : 0); 559 (para->flags & DMX_CHECK_CRC) ? 1 : 0);
560 if (ret < 0) { 560 if (ret < 0) {
561 printk("DVB (%s): could not set feed\n", 561 printk("DVB (%s): could not set feed\n",
562 __FUNCTION__); 562 __func__);
563 dvb_dmxdev_feed_restart(filter); 563 dvb_dmxdev_feed_restart(filter);
564 return ret; 564 return ret;
565 } 565 }
@@ -734,7 +734,7 @@ static int dvb_dmxdev_filter_set(struct dmxdev *dmxdev,
734 struct dmxdev_filter *dmxdevfilter, 734 struct dmxdev_filter *dmxdevfilter,
735 struct dmx_sct_filter_params *params) 735 struct dmx_sct_filter_params *params)
736{ 736{
737 dprintk("function : %s\n", __FUNCTION__); 737 dprintk("function : %s\n", __func__);
738 738
739 dvb_dmxdev_filter_stop(dmxdevfilter); 739 dvb_dmxdev_filter_stop(dmxdevfilter);
740 740
@@ -1040,7 +1040,7 @@ static unsigned int dvb_dvr_poll(struct file *file, poll_table *wait)
1040 struct dmxdev *dmxdev = dvbdev->priv; 1040 struct dmxdev *dmxdev = dvbdev->priv;
1041 unsigned int mask = 0; 1041 unsigned int mask = 0;
1042 1042
1043 dprintk("function : %s\n", __FUNCTION__); 1043 dprintk("function : %s\n", __func__);
1044 1044
1045 poll_wait(file, &dmxdev->dvr_buffer.queue, wait); 1045 poll_wait(file, &dmxdev->dvr_buffer.queue, wait);
1046 1046
diff --git a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
index 89437fdab8be..8cbdb0ec67e2 100644
--- a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -250,7 +250,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
250 unsigned long timeout; 250 unsigned long timeout;
251 unsigned long start; 251 unsigned long start;
252 252
253 dprintk("%s\n", __FUNCTION__); 253 dprintk("%s\n", __func__);
254 254
255 /* loop until timeout elapsed */ 255 /* loop until timeout elapsed */
256 start = jiffies; 256 start = jiffies;
@@ -263,7 +263,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
263 263
264 /* if we got the flags, it was successful! */ 264 /* if we got the flags, it was successful! */
265 if (res & waitfor) { 265 if (res & waitfor) {
266 dprintk("%s succeeded timeout:%lu\n", __FUNCTION__, jiffies - start); 266 dprintk("%s succeeded timeout:%lu\n", __func__, jiffies - start);
267 return 0; 267 return 0;
268 } 268 }
269 269
@@ -276,7 +276,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
276 msleep(1); 276 msleep(1);
277 } 277 }
278 278
279 dprintk("%s failed timeout:%lu\n", __FUNCTION__, jiffies - start); 279 dprintk("%s failed timeout:%lu\n", __func__, jiffies - start);
280 280
281 /* if we get here, we've timed out */ 281 /* if we get here, we've timed out */
282 return -ETIMEDOUT; 282 return -ETIMEDOUT;
@@ -297,7 +297,7 @@ static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot)
297 int buf_size; 297 int buf_size;
298 u8 buf[2]; 298 u8 buf[2];
299 299
300 dprintk("%s\n", __FUNCTION__); 300 dprintk("%s\n", __func__);
301 301
302 /* we'll be determining these during this function */ 302 /* we'll be determining these during this function */
303 ca->slot_info[slot].da_irq_supported = 0; 303 ca->slot_info[slot].da_irq_supported = 0;
@@ -549,7 +549,7 @@ static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot)
549{ 549{
550 int configoption; 550 int configoption;
551 551
552 dprintk("%s\n", __FUNCTION__); 552 dprintk("%s\n", __func__);
553 553
554 /* set the config option */ 554 /* set the config option */
555 ca->pub->write_attribute_mem(ca->pub, slot, 555 ca->pub->write_attribute_mem(ca->pub, slot,
@@ -587,7 +587,7 @@ static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, u8 * eb
587 u8 buf[HOST_LINK_BUF_SIZE]; 587 u8 buf[HOST_LINK_BUF_SIZE];
588 int i; 588 int i;
589 589
590 dprintk("%s\n", __FUNCTION__); 590 dprintk("%s\n", __func__);
591 591
592 /* check if we have space for a link buf in the rx_buffer */ 592 /* check if we have space for a link buf in the rx_buffer */
593 if (ebuf == NULL) { 593 if (ebuf == NULL) {
@@ -708,7 +708,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * b
708 int status; 708 int status;
709 int i; 709 int i;
710 710
711 dprintk("%s\n", __FUNCTION__); 711 dprintk("%s\n", __func__);
712 712
713 713
714 // sanity check 714 // sanity check
@@ -785,7 +785,7 @@ EXPORT_SYMBOL(dvb_ca_en50221_camchange_irq);
785 */ 785 */
786static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot) 786static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
787{ 787{
788 dprintk("%s\n", __FUNCTION__); 788 dprintk("%s\n", __func__);
789 789
790 ca->pub->slot_shutdown(ca->pub, slot); 790 ca->pub->slot_shutdown(ca->pub, slot);
791 ca->slot_info[slot].slot_state = DVB_CA_SLOTSTATE_NONE; 791 ca->slot_info[slot].slot_state = DVB_CA_SLOTSTATE_NONE;
@@ -892,7 +892,7 @@ void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot)
892static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca) 892static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca)
893{ 893{
894 894
895 dprintk("%s\n", __FUNCTION__); 895 dprintk("%s\n", __func__);
896 896
897 ca->wakeup = 1; 897 ca->wakeup = 1;
898 mb(); 898 mb();
@@ -964,7 +964,7 @@ static int dvb_ca_en50221_thread(void *data)
964 int pktcount; 964 int pktcount;
965 void *rxbuf; 965 void *rxbuf;
966 966
967 dprintk("%s\n", __FUNCTION__); 967 dprintk("%s\n", __func__);
968 968
969 /* choose the correct initial delay */ 969 /* choose the correct initial delay */
970 dvb_ca_en50221_thread_update_delay(ca); 970 dvb_ca_en50221_thread_update_delay(ca);
@@ -1172,7 +1172,7 @@ static int dvb_ca_en50221_io_do_ioctl(struct inode *inode, struct file *file,
1172 int err = 0; 1172 int err = 0;
1173 int slot; 1173 int slot;
1174 1174
1175 dprintk("%s\n", __FUNCTION__); 1175 dprintk("%s\n", __func__);
1176 1176
1177 switch (cmd) { 1177 switch (cmd) {
1178 case CA_RESET: 1178 case CA_RESET:
@@ -1266,7 +1266,7 @@ static ssize_t dvb_ca_en50221_io_write(struct file *file,
1266 unsigned long timeout; 1266 unsigned long timeout;
1267 int written; 1267 int written;
1268 1268
1269 dprintk("%s\n", __FUNCTION__); 1269 dprintk("%s\n", __func__);
1270 1270
1271 /* Incoming packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */ 1271 /* Incoming packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */
1272 if (count < 2) 1272 if (count < 2)
@@ -1401,7 +1401,7 @@ static ssize_t dvb_ca_en50221_io_read(struct file *file, char __user * buf,
1401 int pktlen; 1401 int pktlen;
1402 int dispose = 0; 1402 int dispose = 0;
1403 1403
1404 dprintk("%s\n", __FUNCTION__); 1404 dprintk("%s\n", __func__);
1405 1405
1406 /* Outgoing packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */ 1406 /* Outgoing packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */
1407 if (count < 2) 1407 if (count < 2)
@@ -1490,7 +1490,7 @@ static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file)
1490 int err; 1490 int err;
1491 int i; 1491 int i;
1492 1492
1493 dprintk("%s\n", __FUNCTION__); 1493 dprintk("%s\n", __func__);
1494 1494
1495 if (!try_module_get(ca->pub->owner)) 1495 if (!try_module_get(ca->pub->owner))
1496 return -EIO; 1496 return -EIO;
@@ -1534,7 +1534,7 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
1534 struct dvb_ca_private *ca = dvbdev->priv; 1534 struct dvb_ca_private *ca = dvbdev->priv;
1535 int err; 1535 int err;
1536 1536
1537 dprintk("%s\n", __FUNCTION__); 1537 dprintk("%s\n", __func__);
1538 1538
1539 /* mark the CA device as closed */ 1539 /* mark the CA device as closed */
1540 ca->open = 0; 1540 ca->open = 0;
@@ -1564,7 +1564,7 @@ static unsigned int dvb_ca_en50221_io_poll(struct file *file, poll_table * wait)
1564 int slot; 1564 int slot;
1565 int result = 0; 1565 int result = 0;
1566 1566
1567 dprintk("%s\n", __FUNCTION__); 1567 dprintk("%s\n", __func__);
1568 1568
1569 if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1) { 1569 if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1) {
1570 mask |= POLLIN; 1570 mask |= POLLIN;
@@ -1626,7 +1626,7 @@ int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter,
1626 struct dvb_ca_private *ca = NULL; 1626 struct dvb_ca_private *ca = NULL;
1627 int i; 1627 int i;
1628 1628
1629 dprintk("%s\n", __FUNCTION__); 1629 dprintk("%s\n", __func__);
1630 1630
1631 if (slot_count < 1) 1631 if (slot_count < 1)
1632 return -EINVAL; 1632 return -EINVAL;
@@ -1704,7 +1704,7 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
1704 struct dvb_ca_private *ca = pubca->private; 1704 struct dvb_ca_private *ca = pubca->private;
1705 int i; 1705 int i;
1706 1706
1707 dprintk("%s\n", __FUNCTION__); 1707 dprintk("%s\n", __func__);
1708 1708
1709 /* shutdown the thread if there was one */ 1709 /* shutdown the thread if there was one */
1710 kthread_stop(ca->thread); 1710 kthread_stop(ca->thread);
diff --git a/drivers/media/dvb/dvb-core/dvb_demux.c b/drivers/media/dvb/dvb-core/dvb_demux.c
index 988d14302cb1..934e15fffc56 100644
--- a/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -553,7 +553,7 @@ static void dvb_demux_feed_add(struct dvb_demux_feed *feed)
553 spin_lock_irq(&feed->demux->lock); 553 spin_lock_irq(&feed->demux->lock);
554 if (dvb_demux_feed_find(feed)) { 554 if (dvb_demux_feed_find(feed)) {
555 printk(KERN_ERR "%s: feed already in list (type=%x state=%x pid=%x)\n", 555 printk(KERN_ERR "%s: feed already in list (type=%x state=%x pid=%x)\n",
556 __FUNCTION__, feed->type, feed->state, feed->pid); 556 __func__, feed->type, feed->state, feed->pid);
557 goto out; 557 goto out;
558 } 558 }
559 559
@@ -567,7 +567,7 @@ static void dvb_demux_feed_del(struct dvb_demux_feed *feed)
567 spin_lock_irq(&feed->demux->lock); 567 spin_lock_irq(&feed->demux->lock);
568 if (!(dvb_demux_feed_find(feed))) { 568 if (!(dvb_demux_feed_find(feed))) {
569 printk(KERN_ERR "%s: feed not in list (type=%x state=%x pid=%x)\n", 569 printk(KERN_ERR "%s: feed not in list (type=%x state=%x pid=%x)\n",
570 __FUNCTION__, feed->type, feed->state, feed->pid); 570 __func__, feed->type, feed->state, feed->pid);
571 goto out; 571 goto out;
572 } 572 }
573 573
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index 925cfa6221ad..2dddd08c5445 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -135,7 +135,7 @@ static void dvb_frontend_add_event(struct dvb_frontend *fe, fe_status_t status)
135 struct dvb_frontend_event *e; 135 struct dvb_frontend_event *e;
136 int wp; 136 int wp;
137 137
138 dprintk ("%s\n", __FUNCTION__); 138 dprintk ("%s\n", __func__);
139 139
140 if (mutex_lock_interruptible (&events->mtx)) 140 if (mutex_lock_interruptible (&events->mtx))
141 return; 141 return;
@@ -171,7 +171,7 @@ static int dvb_frontend_get_event(struct dvb_frontend *fe,
171 struct dvb_frontend_private *fepriv = fe->frontend_priv; 171 struct dvb_frontend_private *fepriv = fe->frontend_priv;
172 struct dvb_fe_events *events = &fepriv->events; 172 struct dvb_fe_events *events = &fepriv->events;
173 173
174 dprintk ("%s\n", __FUNCTION__); 174 dprintk ("%s\n", __func__);
175 175
176 if (events->overflow) { 176 if (events->overflow) {
177 events->overflow = 0; 177 events->overflow = 0;
@@ -237,7 +237,7 @@ static void dvb_frontend_swzigzag_update_delay(struct dvb_frontend_private *fepr
237{ 237{
238 int q2; 238 int q2;
239 239
240 dprintk ("%s\n", __FUNCTION__); 240 dprintk ("%s\n", __func__);
241 241
242 if (locked) 242 if (locked)
243 (fepriv->quality) = (fepriv->quality * 220 + 36*256) / 256; 243 (fepriv->quality) = (fepriv->quality * 220 + 36*256) / 256;
@@ -329,7 +329,7 @@ static int dvb_frontend_swzigzag_autotune(struct dvb_frontend *fe, int check_wra
329 329
330 dprintk("%s: drift:%i inversion:%i auto_step:%i " 330 dprintk("%s: drift:%i inversion:%i auto_step:%i "
331 "auto_sub_step:%i started_auto_step:%i\n", 331 "auto_sub_step:%i started_auto_step:%i\n",
332 __FUNCTION__, fepriv->lnb_drift, fepriv->inversion, 332 __func__, fepriv->lnb_drift, fepriv->inversion,
333 fepriv->auto_step, fepriv->auto_sub_step, fepriv->started_auto_step); 333 fepriv->auto_step, fepriv->auto_sub_step, fepriv->started_auto_step);
334 334
335 /* set the frontend itself */ 335 /* set the frontend itself */
@@ -511,7 +511,7 @@ static int dvb_frontend_thread(void *data)
511 fe_status_t s; 511 fe_status_t s;
512 struct dvb_frontend_parameters *params; 512 struct dvb_frontend_parameters *params;
513 513
514 dprintk("%s\n", __FUNCTION__); 514 dprintk("%s\n", __func__);
515 515
516 fepriv->check_wrapped = 0; 516 fepriv->check_wrapped = 0;
517 fepriv->quality = 0; 517 fepriv->quality = 0;
@@ -597,7 +597,7 @@ static void dvb_frontend_stop(struct dvb_frontend *fe)
597{ 597{
598 struct dvb_frontend_private *fepriv = fe->frontend_priv; 598 struct dvb_frontend_private *fepriv = fe->frontend_priv;
599 599
600 dprintk ("%s\n", __FUNCTION__); 600 dprintk ("%s\n", __func__);
601 601
602 fepriv->exit = 1; 602 fepriv->exit = 1;
603 mb(); 603 mb();
@@ -665,7 +665,7 @@ static int dvb_frontend_start(struct dvb_frontend *fe)
665 struct dvb_frontend_private *fepriv = fe->frontend_priv; 665 struct dvb_frontend_private *fepriv = fe->frontend_priv;
666 struct task_struct *fe_thread; 666 struct task_struct *fe_thread;
667 667
668 dprintk ("%s\n", __FUNCTION__); 668 dprintk ("%s\n", __func__);
669 669
670 if (fepriv->thread) { 670 if (fepriv->thread) {
671 if (!fepriv->exit) 671 if (!fepriv->exit)
@@ -763,7 +763,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
763 struct dvb_frontend_private *fepriv = fe->frontend_priv; 763 struct dvb_frontend_private *fepriv = fe->frontend_priv;
764 int err = -EOPNOTSUPP; 764 int err = -EOPNOTSUPP;
765 765
766 dprintk ("%s\n", __FUNCTION__); 766 dprintk ("%s\n", __func__);
767 767
768 if (fepriv->exit) 768 if (fepriv->exit)
769 return -ENODEV; 769 return -ENODEV;
@@ -895,7 +895,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
895 int i; 895 int i;
896 u8 last = 1; 896 u8 last = 1;
897 if (dvb_frontend_debug) 897 if (dvb_frontend_debug)
898 printk("%s switch command: 0x%04lx\n", __FUNCTION__, cmd); 898 printk("%s switch command: 0x%04lx\n", __func__, cmd);
899 do_gettimeofday(&nexttime); 899 do_gettimeofday(&nexttime);
900 if (dvb_frontend_debug) 900 if (dvb_frontend_debug)
901 memcpy(&tv[0], &nexttime, sizeof(struct timeval)); 901 memcpy(&tv[0], &nexttime, sizeof(struct timeval));
@@ -919,7 +919,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
919 } 919 }
920 if (dvb_frontend_debug) { 920 if (dvb_frontend_debug) {
921 printk("%s(%d): switch delay (should be 32k followed by all 8k\n", 921 printk("%s(%d): switch delay (should be 32k followed by all 8k\n",
922 __FUNCTION__, fe->dvb->num); 922 __func__, fe->dvb->num);
923 for (i = 1; i < 10; i++) 923 for (i = 1; i < 10; i++)
924 printk("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i])); 924 printk("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i]));
925 } 925 }
@@ -1037,7 +1037,7 @@ static unsigned int dvb_frontend_poll(struct file *file, struct poll_table_struc
1037 struct dvb_frontend *fe = dvbdev->priv; 1037 struct dvb_frontend *fe = dvbdev->priv;
1038 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1038 struct dvb_frontend_private *fepriv = fe->frontend_priv;
1039 1039
1040 dprintk ("%s\n", __FUNCTION__); 1040 dprintk ("%s\n", __func__);
1041 1041
1042 poll_wait (file, &fepriv->events.wait_queue, wait); 1042 poll_wait (file, &fepriv->events.wait_queue, wait);
1043 1043
@@ -1054,7 +1054,7 @@ static int dvb_frontend_open(struct inode *inode, struct file *file)
1054 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1054 struct dvb_frontend_private *fepriv = fe->frontend_priv;
1055 int ret; 1055 int ret;
1056 1056
1057 dprintk ("%s\n", __FUNCTION__); 1057 dprintk ("%s\n", __func__);
1058 1058
1059 if (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) { 1059 if (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) {
1060 if ((ret = fe->ops.ts_bus_ctrl(fe, 1)) < 0) 1060 if ((ret = fe->ops.ts_bus_ctrl(fe, 1)) < 0)
@@ -1095,7 +1095,7 @@ static int dvb_frontend_release(struct inode *inode, struct file *file)
1095 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1095 struct dvb_frontend_private *fepriv = fe->frontend_priv;
1096 int ret; 1096 int ret;
1097 1097
1098 dprintk ("%s\n", __FUNCTION__); 1098 dprintk ("%s\n", __func__);
1099 1099
1100 if ((file->f_flags & O_ACCMODE) != O_RDONLY) 1100 if ((file->f_flags & O_ACCMODE) != O_RDONLY)
1101 fepriv->release_jiffies = jiffies; 1101 fepriv->release_jiffies = jiffies;
@@ -1135,7 +1135,7 @@ int dvb_register_frontend(struct dvb_adapter* dvb,
1135 .kernel_ioctl = dvb_frontend_ioctl 1135 .kernel_ioctl = dvb_frontend_ioctl
1136 }; 1136 };
1137 1137
1138 dprintk ("%s\n", __FUNCTION__); 1138 dprintk ("%s\n", __func__);
1139 1139
1140 if (mutex_lock_interruptible(&frontend_mutex)) 1140 if (mutex_lock_interruptible(&frontend_mutex))
1141 return -ERESTARTSYS; 1141 return -ERESTARTSYS;
@@ -1169,7 +1169,7 @@ EXPORT_SYMBOL(dvb_register_frontend);
1169int dvb_unregister_frontend(struct dvb_frontend* fe) 1169int dvb_unregister_frontend(struct dvb_frontend* fe)
1170{ 1170{
1171 struct dvb_frontend_private *fepriv = fe->frontend_priv; 1171 struct dvb_frontend_private *fepriv = fe->frontend_priv;
1172 dprintk ("%s\n", __FUNCTION__); 1172 dprintk ("%s\n", __func__);
1173 1173
1174 mutex_lock(&frontend_mutex); 1174 mutex_lock(&frontend_mutex);
1175 dvb_frontend_stop (fe); 1175 dvb_frontend_stop (fe);
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c
index efaa297ac34d..56d871cfd7fc 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -965,17 +965,17 @@ static int dvb_net_feed_start(struct net_device *dev)
965 struct dmx_demux *demux = priv->demux; 965 struct dmx_demux *demux = priv->demux;
966 unsigned char *mac = (unsigned char *) dev->dev_addr; 966 unsigned char *mac = (unsigned char *) dev->dev_addr;
967 967
968 dprintk("%s: rx_mode %i\n", __FUNCTION__, priv->rx_mode); 968 dprintk("%s: rx_mode %i\n", __func__, priv->rx_mode);
969 mutex_lock(&priv->mutex); 969 mutex_lock(&priv->mutex);
970 if (priv->tsfeed || priv->secfeed || priv->secfilter || priv->multi_secfilter[0]) 970 if (priv->tsfeed || priv->secfeed || priv->secfilter || priv->multi_secfilter[0])
971 printk("%s: BUG %d\n", __FUNCTION__, __LINE__); 971 printk("%s: BUG %d\n", __func__, __LINE__);
972 972
973 priv->secfeed=NULL; 973 priv->secfeed=NULL;
974 priv->secfilter=NULL; 974 priv->secfilter=NULL;
975 priv->tsfeed = NULL; 975 priv->tsfeed = NULL;
976 976
977 if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) { 977 if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) {
978 dprintk("%s: alloc secfeed\n", __FUNCTION__); 978 dprintk("%s: alloc secfeed\n", __func__);
979 ret=demux->allocate_section_feed(demux, &priv->secfeed, 979 ret=demux->allocate_section_feed(demux, &priv->secfeed,
980 dvb_net_sec_callback); 980 dvb_net_sec_callback);
981 if (ret<0) { 981 if (ret<0) {
@@ -993,38 +993,38 @@ static int dvb_net_feed_start(struct net_device *dev)
993 } 993 }
994 994
995 if (priv->rx_mode != RX_MODE_PROMISC) { 995 if (priv->rx_mode != RX_MODE_PROMISC) {
996 dprintk("%s: set secfilter\n", __FUNCTION__); 996 dprintk("%s: set secfilter\n", __func__);
997 dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_normal); 997 dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_normal);
998 } 998 }
999 999
1000 switch (priv->rx_mode) { 1000 switch (priv->rx_mode) {
1001 case RX_MODE_MULTI: 1001 case RX_MODE_MULTI:
1002 for (i = 0; i < priv->multi_num; i++) { 1002 for (i = 0; i < priv->multi_num; i++) {
1003 dprintk("%s: set multi_secfilter[%d]\n", __FUNCTION__, i); 1003 dprintk("%s: set multi_secfilter[%d]\n", __func__, i);
1004 dvb_net_filter_sec_set(dev, &priv->multi_secfilter[i], 1004 dvb_net_filter_sec_set(dev, &priv->multi_secfilter[i],
1005 priv->multi_macs[i], mask_normal); 1005 priv->multi_macs[i], mask_normal);
1006 } 1006 }
1007 break; 1007 break;
1008 case RX_MODE_ALL_MULTI: 1008 case RX_MODE_ALL_MULTI:
1009 priv->multi_num=1; 1009 priv->multi_num=1;
1010 dprintk("%s: set multi_secfilter[0]\n", __FUNCTION__); 1010 dprintk("%s: set multi_secfilter[0]\n", __func__);
1011 dvb_net_filter_sec_set(dev, &priv->multi_secfilter[0], 1011 dvb_net_filter_sec_set(dev, &priv->multi_secfilter[0],
1012 mac_allmulti, mask_allmulti); 1012 mac_allmulti, mask_allmulti);
1013 break; 1013 break;
1014 case RX_MODE_PROMISC: 1014 case RX_MODE_PROMISC:
1015 priv->multi_num=0; 1015 priv->multi_num=0;
1016 dprintk("%s: set secfilter\n", __FUNCTION__); 1016 dprintk("%s: set secfilter\n", __func__);
1017 dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_promisc); 1017 dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_promisc);
1018 break; 1018 break;
1019 } 1019 }
1020 1020
1021 dprintk("%s: start filtering\n", __FUNCTION__); 1021 dprintk("%s: start filtering\n", __func__);
1022 priv->secfeed->start_filtering(priv->secfeed); 1022 priv->secfeed->start_filtering(priv->secfeed);
1023 } else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) { 1023 } else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) {
1024 struct timespec timeout = { 0, 10000000 }; // 10 msec 1024 struct timespec timeout = { 0, 10000000 }; // 10 msec
1025 1025
1026 /* we have payloads encapsulated in TS */ 1026 /* we have payloads encapsulated in TS */
1027 dprintk("%s: alloc tsfeed\n", __FUNCTION__); 1027 dprintk("%s: alloc tsfeed\n", __func__);
1028 ret = demux->allocate_ts_feed(demux, &priv->tsfeed, dvb_net_ts_callback); 1028 ret = demux->allocate_ts_feed(demux, &priv->tsfeed, dvb_net_ts_callback);
1029 if (ret < 0) { 1029 if (ret < 0) {
1030 printk("%s: could not allocate ts feed\n", dev->name); 1030 printk("%s: could not allocate ts feed\n", dev->name);
@@ -1048,7 +1048,7 @@ static int dvb_net_feed_start(struct net_device *dev)
1048 goto error; 1048 goto error;
1049 } 1049 }
1050 1050
1051 dprintk("%s: start filtering\n", __FUNCTION__); 1051 dprintk("%s: start filtering\n", __func__);
1052 priv->tsfeed->start_filtering(priv->tsfeed); 1052 priv->tsfeed->start_filtering(priv->tsfeed);
1053 } else 1053 } else
1054 ret = -EINVAL; 1054 ret = -EINVAL;
@@ -1063,17 +1063,17 @@ static int dvb_net_feed_stop(struct net_device *dev)
1063 struct dvb_net_priv *priv = dev->priv; 1063 struct dvb_net_priv *priv = dev->priv;
1064 int i, ret = 0; 1064 int i, ret = 0;
1065 1065
1066 dprintk("%s\n", __FUNCTION__); 1066 dprintk("%s\n", __func__);
1067 mutex_lock(&priv->mutex); 1067 mutex_lock(&priv->mutex);
1068 if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) { 1068 if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) {
1069 if (priv->secfeed) { 1069 if (priv->secfeed) {
1070 if (priv->secfeed->is_filtering) { 1070 if (priv->secfeed->is_filtering) {
1071 dprintk("%s: stop secfeed\n", __FUNCTION__); 1071 dprintk("%s: stop secfeed\n", __func__);
1072 priv->secfeed->stop_filtering(priv->secfeed); 1072 priv->secfeed->stop_filtering(priv->secfeed);
1073 } 1073 }
1074 1074
1075 if (priv->secfilter) { 1075 if (priv->secfilter) {
1076 dprintk("%s: release secfilter\n", __FUNCTION__); 1076 dprintk("%s: release secfilter\n", __func__);
1077 priv->secfeed->release_filter(priv->secfeed, 1077 priv->secfeed->release_filter(priv->secfeed,
1078 priv->secfilter); 1078 priv->secfilter);
1079 priv->secfilter=NULL; 1079 priv->secfilter=NULL;
@@ -1082,7 +1082,7 @@ static int dvb_net_feed_stop(struct net_device *dev)
1082 for (i=0; i<priv->multi_num; i++) { 1082 for (i=0; i<priv->multi_num; i++) {
1083 if (priv->multi_secfilter[i]) { 1083 if (priv->multi_secfilter[i]) {
1084 dprintk("%s: release multi_filter[%d]\n", 1084 dprintk("%s: release multi_filter[%d]\n",
1085 __FUNCTION__, i); 1085 __func__, i);
1086 priv->secfeed->release_filter(priv->secfeed, 1086 priv->secfeed->release_filter(priv->secfeed,
1087 priv->multi_secfilter[i]); 1087 priv->multi_secfilter[i]);
1088 priv->multi_secfilter[i] = NULL; 1088 priv->multi_secfilter[i] = NULL;
@@ -1096,7 +1096,7 @@ static int dvb_net_feed_stop(struct net_device *dev)
1096 } else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) { 1096 } else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) {
1097 if (priv->tsfeed) { 1097 if (priv->tsfeed) {
1098 if (priv->tsfeed->is_filtering) { 1098 if (priv->tsfeed->is_filtering) {
1099 dprintk("%s: stop tsfeed\n", __FUNCTION__); 1099 dprintk("%s: stop tsfeed\n", __func__);
1100 priv->tsfeed->stop_filtering(priv->tsfeed); 1100 priv->tsfeed->stop_filtering(priv->tsfeed);
1101 } 1101 }
1102 priv->demux->release_ts_feed(priv->demux, priv->tsfeed); 1102 priv->demux->release_ts_feed(priv->demux, priv->tsfeed);
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c
index ce5122e220f6..0a2897bc9873 100644
--- a/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/drivers/media/dvb/dvb-core/dvbdev.c
@@ -196,7 +196,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
196 if ((id = dvbdev_get_free_id (adap, type)) < 0){ 196 if ((id = dvbdev_get_free_id (adap, type)) < 0){
197 mutex_unlock(&dvbdev_register_lock); 197 mutex_unlock(&dvbdev_register_lock);
198 *pdvbdev = NULL; 198 *pdvbdev = NULL;
199 printk(KERN_ERR "%s: couldn't find free device id\n", __FUNCTION__); 199 printk(KERN_ERR "%s: couldn't find free device id\n", __func__);
200 return -ENFILE; 200 return -ENFILE;
201 } 201 }
202 202
@@ -235,7 +235,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
235 "dvb%d.%s%d", adap->num, dnames[type], id); 235 "dvb%d.%s%d", adap->num, dnames[type], id);
236 if (IS_ERR(clsdev)) { 236 if (IS_ERR(clsdev)) {
237 printk(KERN_ERR "%s: failed to create device dvb%d.%s%d (%ld)\n", 237 printk(KERN_ERR "%s: failed to create device dvb%d.%s%d (%ld)\n",
238 __FUNCTION__, adap->num, dnames[type], id, PTR_ERR(clsdev)); 238 __func__, adap->num, dnames[type], id, PTR_ERR(clsdev));
239 return PTR_ERR(clsdev); 239 return PTR_ERR(clsdev);
240 } 240 }
241 241