Skip to contentSkip to conversation

media: replace remaining __FUNCTION__ occurences

PATCH In review Harvey Harrison 6 participants 17 messages Mar 4, 2008 – Apr 9, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: replace remaining __FUNCTION__ occurences

__FUNCTION__ is gcc-specific, use __func__

---
 drivers/media/common/saa7146_core.c               |    8 +-
 drivers/media/common/saa7146_i2c.c                |    6 +-
 drivers/media/dvb/b2c2/flexcop-dma.c              |    4 +-
 drivers/media/dvb/b2c2/flexcop-sram.c             |   28 ++--
 drivers/media/dvb/bt8xx/dst.c                     |    2 +-
 drivers/media/dvb/bt8xx/dst_ca.c                  |   10 +-
 drivers/media/dvb/bt8xx/dvb-bt8xx.c               |    2 +-
 drivers/media/dvb/cinergyT2/cinergyT2.c           |    2 +-
 drivers/media/dvb/dvb-core/dmxdev.c               |   10 +-
 drivers/media/dvb/dvb-core/dvb_ca_en50221.c       |   36 +++---
 drivers/media/dvb/dvb-core/dvb_demux.c            |    4 +-
 drivers/media/dvb/dvb-core/dvb_frontend.c         |   30 ++--
 drivers/media/dvb/dvb-core/dvb_net.c              |   30 ++--
 drivers/media/dvb/dvb-core/dvbdev.c               |    4 +-
 drivers/media/dvb/dvb-usb/cxusb.c                 |    6 +-
 drivers/media/dvb/dvb-usb/gp8psk-fe.c             |    4 +-
 drivers/media/dvb/dvb-usb/m920x.c                 |   12 +-
 drivers/media/dvb/dvb-usb/vp702x-fe.c             |   18 ++--
 drivers/media/dvb/frontends/bcm3510.c             |    4 +-
 drivers/media/dvb/frontends/bcm3510.h             |    2 +-
 drivers/media/dvb/frontends/cx22700.c             |   12 +-
 drivers/media/dvb/frontends/cx22700.h             |    2 +-
 drivers/media/dvb/frontends/cx22702.c             |   24 ++--
 drivers/media/dvb/frontends/cx22702.h             |    2 +-
 drivers/media/dvb/frontends/cx24110.c             |    6 +-
 drivers/media/dvb/frontends/cx24110.h             |    2 +-
 drivers/media/dvb/frontends/cx24123.c             |   82 ++++++------
 drivers/media/dvb/frontends/cx24123.h             |    2 +-
 drivers/media/dvb/frontends/dib3000.h             |    2 +-
 drivers/media/dvb/frontends/dib3000mc.h           |    2 +-
 drivers/media/dvb/frontends/dvb-pll.c             |    2 +-
 drivers/media/dvb/frontends/dvb-pll.h             |    2 +-
 drivers/media/dvb/frontends/isl6421.h             |    2 +-
 drivers/media/dvb/frontends/l64781.c              |    2 +-
 drivers/media/dvb/frontends/l64781.h              |    2 +-
 drivers/media/dvb/frontends/lgdt330x.c            |   38 +++---
 drivers/media/dvb/frontends/lgdt330x.h            |    2 +-
 drivers/media/dvb/frontends/lnbp21.h              |    2 +-
 drivers/media/dvb/frontends/mt2060.h              |    2 +-
 drivers/media/dvb/frontends/mt2131.c              |   14 +-
 drivers/media/dvb/frontends/mt2131.h              |    2 +-
 drivers/media/dvb/frontends/mt2266.h              |    2 +-
 drivers/media/dvb/frontends/mt312.c               |    6 +-
 drivers/media/dvb/frontends/mt312.h               |    2 +-
 drivers/media/dvb/frontends/mt352.c               |    8 +-
 drivers/media/dvb/frontends/mt352.h               |    2 +-
 drivers/media/dvb/frontends/nxt200x.c             |   26 ++--
 drivers/media/dvb/frontends/nxt200x.h             |    2 +-
 drivers/media/dvb/frontends/nxt6000.h             |    2 +-
 drivers/media/dvb/frontends/or51132.c             |    6 +-
 drivers/media/dvb/frontends/or51132.h             |    2 +-
 drivers/media/dvb/frontends/or51211.c             |    6 +-
 drivers/media/dvb/frontends/or51211.h             |    2 +-
 drivers/media/dvb/frontends/qt1010.h              |    2 +-
 drivers/media/dvb/frontends/s5h1409.c             |   48 ++++----
 drivers/media/dvb/frontends/s5h1409.h             |    2 +-
 drivers/media/dvb/frontends/s5h1420.c             |    2 +-
 drivers/media/dvb/frontends/s5h1420.h             |    2 +-
 drivers/media/dvb/frontends/sp8870.c              |   26 ++--
 drivers/media/dvb/frontends/sp8870.h              |    2 +-
 drivers/media/dvb/frontends/sp887x.c              |   18 ++--
 drivers/media/dvb/frontends/sp887x.h              |    2 +-
 drivers/media/dvb/frontends/stv0297.c             |   14 +-
 drivers/media/dvb/frontends/stv0297.h             |    2 +-
 drivers/media/dvb/frontends/stv0299.c             |   40 +++---
 drivers/media/dvb/frontends/stv0299.h             |    2 +-
 drivers/media/dvb/frontends/tda10021.c            |    4 +-
 drivers/media/dvb/frontends/tda10023.c            |    4 +-
 drivers/media/dvb/frontends/tda1002x.h            |    4 +-
 drivers/media/dvb/frontends/tda1004x.c            |   56 ++++----
 drivers/media/dvb/frontends/tda1004x.h            |    4 +-
 drivers/media/dvb/frontends/tda10086.c            |   40 +++---
 drivers/media/dvb/frontends/tda10086.h            |    2 +-
 drivers/media/dvb/frontends/tda18271-priv.h       |    2 +-
 drivers/media/dvb/frontends/tda18271.h            |    2 +-
 drivers/media/dvb/frontends/tda8083.c             |    4 +-
 drivers/media/dvb/frontends/tda8083.h             |    2 +-
 drivers/media/dvb/frontends/tda826x.c             |   10 +-
 drivers/media/dvb/frontends/tda826x.h             |    2 +-
 drivers/media/dvb/frontends/tda827x.c             |   18 ++--
 drivers/media/dvb/frontends/tda827x.h             |    2 +-
 drivers/media/dvb/frontends/tua6100.c             |    2 +-
 drivers/media/dvb/frontends/tua6100.h             |    2 +-
 drivers/media/dvb/frontends/ves1820.c             |    4 +-
 drivers/media/dvb/frontends/ves1820.h             |    2 +-
 drivers/media/dvb/frontends/ves1x93.c             |    6 +-
 drivers/media/dvb/frontends/ves1x93.h             |    2 +-
 drivers/media/dvb/frontends/xc5000.c              |   44 +++---
 drivers/media/dvb/frontends/xc5000.h              |    2 +-
 drivers/media/dvb/frontends/zl10353.c             |    6 +-
 drivers/media/dvb/frontends/zl10353.h             |    2 +-
 drivers/media/dvb/ttpci/av7110.c                  |   12 +-
 drivers/media/dvb/ttpci/av7110.h                  |    2 +-
 drivers/media/dvb/ttpci/av7110_hw.c               |   42 +++---
 drivers/media/dvb/ttpci/av7110_ir.c               |    6 +-
 drivers/media/dvb/ttpci/av7110_v4l.c              |    4 +-
 drivers/media/dvb/ttpci/budget-ci.c               |    2 +-
 drivers/media/dvb/ttpci/budget-core.c             |    2 +-
 drivers/media/dvb/ttpci/budget.c                  |    6 +-
 drivers/media/dvb/ttpci/budget.h                  |    2 +-
 drivers/media/dvb/ttpci/ttpci-eeprom.c            |    2 +-
 drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c |   44 +++---
 drivers/media/dvb/ttusb-dec/ttusb_dec.c           |  106 ++++++++--------
 drivers/media/dvb/ttusb-dec/ttusbdecfe.c          |    4 +-
 drivers/media/video/cpia.h                        |    4 +-
 drivers/media/video/cpia2/cpia2_core.c            |   12 +-
 drivers/media/video/cpia_usb.c                    |    2 +-
 drivers/media/video/cx23885/cx23885-cards.c       |    2 +-
 drivers/media/video/cx23885/cx23885-core.c        |   98 +++++++-------
 drivers/media/video/cx23885/cx23885-dvb.c         |   10 +-
 drivers/media/video/cx23885/cx23885-i2c.c         |   16 +-
 drivers/media/video/cx23885/cx23885-video.c       |   54 ++++----
 drivers/media/video/cx88/cx88-alsa.c              |    2 +-
 drivers/media/video/cx88/cx88-blackbird.c         |    8 +-
 drivers/media/video/cx88/cx88-core.c              |    4 +-
 drivers/media/video/cx88/cx88-dvb.c               |    8 +-
 drivers/media/video/cx88/cx88-mpeg.c              |   16 +-
 drivers/media/video/cx88/cx88-tvaudio.c           |   24 ++--
 drivers/media/video/em28xx/em28xx-audio.c         |    2 +-
 drivers/media/video/em28xx/em28xx-core.c          |    6 +-
 drivers/media/video/em28xx/em28xx-i2c.c           |    2 +-
 drivers/media/video/em28xx/em28xx-video.c         |    2 +-
 drivers/media/video/et61x251/et61x251.h           |    6 +-
 drivers/media/video/ir-kbd-i2c.c                  |    2 +-
 drivers/media/video/mt20xx.h                      |    2 +-
 drivers/media/video/ov511.h                       |    2 +-
 drivers/media/video/ovcamchip/ovcamchip_priv.h    |    4 +-
 drivers/media/video/pvrusb2/pvrusb2-sysfs.c       |   20 ++--
 drivers/media/video/pwc/pwc-if.c                  |    6 +-
 drivers/media/video/saa7134/saa7134-dvb.c         |   12 +-
 drivers/media/video/saa7134/saa7134-empress.c     |    4 +-
 drivers/media/video/se401.c                       |    6 +-
 drivers/media/video/sn9c102/sn9c102.h             |    6 +-
 drivers/media/video/stk-webcam.c                  |    2 +-
 drivers/media/video/stv680.c                      |    2 +-
 drivers/media/video/tcm825x.c                     |    2 +-
 drivers/media/video/tda8290.c                     |    6 +-
 drivers/media/video/tda8290.h                     |    4 +-
 drivers/media/video/tda9840.c                     |    2 +-
 drivers/media/video/tda9887.h                     |    2 +-
 drivers/media/video/tea5761.h                     |    4 +-
 drivers/media/video/tea5767.h                     |    4 +-
 drivers/media/video/tea6415c.c                    |    2 +-
 drivers/media/video/tea6420.c                     |    2 +-
 drivers/media/video/tuner-simple.h                |    2 +-
 drivers/media/video/tuner-xc2028.c                |   28 ++--
 drivers/media/video/tuner-xc2028.h                |    2 +-
 drivers/media/video/usbvideo/konicawc.c           |    2 +-
 drivers/media/video/usbvideo/quickcam_messenger.c |    2 +-
 drivers/media/video/usbvideo/usbvideo.c           |  142 ++++++++++----------
 drivers/media/video/usbvideo/vicam.c              |    2 +-
 drivers/media/video/usbvision/usbvision-core.c    |   24 ++--
 drivers/media/video/usbvision/usbvision-video.c   |   36 +++---
 drivers/media/video/videobuf-core.c               |    2 +-
 drivers/media/video/videobuf-dma-sg.c             |    4 +-
 drivers/media/video/videobuf-vmalloc.c            |    2 +-
 drivers/media/video/videodev.c                    |    4 +-
 drivers/media/video/vivi.c                        |   22 ++--
 drivers/media/video/w9966.c                       |    2 +-
 drivers/media/video/w9968cf.h                     |    6 +-
 drivers/media/video/zc0301/zc0301.h               |    6 +-
 drivers/media/video/zoran_driver.c                |    4 +-
 162 files changed, 892 insertions(+), 892 deletions(-)
drivers/media/common/saa7146_core.c +4 -4
index 168a8d3..d4edec1 100644
@@ -74,7 +74,7 @@ static inline int saa7146_wait_for_debi_done_sleep(struct saa7146_dev *dev,
 		if (err) {
 			printk(KERN_ERR "%s: %s timed out while waiting for "
 					"registers getting programmed\n",
-					dev->name, __FUNCTION__);
+					dev->name, __func__);
 			return -ETIMEDOUT;
 		}
 		msleep(1);
@@ -89,7 +89,7 @@ static inline int saa7146_wait_for_debi_done_sleep(struct saa7146_dev *dev,
 		saa7146_read(dev, MC2);
 		if (err) {
 			DEB_S(("%s: %s timed out while waiting for transfer "
-				"completion\n",	dev->name, __FUNCTION__));
+				"completion\n",	dev->name, __func__));
 			return -ETIMEDOUT;
 		}
 		msleep(1);
@@ -111,7 +111,7 @@ static inline int saa7146_wait_for_debi_done_busyloop(struct saa7146_dev *dev,
 		if (!loops--) {
 			printk(KERN_ERR "%s: %s timed out while waiting for "
 					"registers getting programmed\n",
-					dev->name, __FUNCTION__);
+					dev->name, __func__);
 			return -ETIMEDOUT;
 		}
 		udelay(1);
@@ -125,7 +125,7 @@ static inline int saa7146_wait_for_debi_done_busyloop(struct saa7146_dev *dev,
 		saa7146_read(dev, MC2);
 		if (!loops--) {
 			DEB_S(("%s: %s timed out while waiting for transfer "
-				"completion\n", dev->name, __FUNCTION__));
+				"completion\n", dev->name, __func__));
 			return -ETIMEDOUT;
 		}
 		udelay(5);
drivers/media/common/saa7146_i2c.c +3 -3
index 7e7689a..35b01ec 100644
@@ -203,7 +203,7 @@ static int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword, int short_d
 				return -ERESTARTSYS;
 
 			printk(KERN_WARNING "%s %s [irq]: timed out waiting for end of xfer\n",
-				dev->name, __FUNCTION__);
+				dev->name, __func__);
 			return -EIO;
 		}
 		status = saa7146_read(dev, I2C_STATUS);
@@ -221,7 +221,7 @@ static int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword, int short_d
 			}
 			if (time_after(jiffies,timeout)) {
 				printk(KERN_WARNING "%s %s: timed out waiting for MC2\n",
-					dev->name, __FUNCTION__);
+					dev->name, __func__);
 				return -EIO;
 			}
 		}
@@ -238,7 +238,7 @@ static int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword, int short_d
 				 * (no answer from nonexisistant device...)
 				 */
 				printk(KERN_WARNING "%s %s [poll]: timed out waiting for end of xfer\n",
-					dev->name, __FUNCTION__);
+					dev->name, __func__);
 				return -EIO;
 			}
 			if (++trial < 50 && short_delay)
drivers/media/dvb/b2c2/flexcop-dma.c +2 -2
index 6f592bc..a91ed28 100644
@@ -112,7 +112,7 @@ static int flexcop_dma_remap(struct flexcop_device *fc,
 {
 	flexcop_ibi_register r = (dma_idx & FC_DMA_1) ? dma1_00c : dma2_01c;
 	flexcop_ibi_value v = fc->read_ibi_reg(fc,r);
-	deb_info("%s\n",__FUNCTION__);
+	deb_info("%s\n",__func__);
 	v.dma_0xc.remap_enable = onoff;
 	fc->write_ibi_reg(fc,r,v);
 	return 0;
@@ -162,7 +162,7 @@ int flexcop_dma_config_timer(struct flexcop_device *fc,
 
 	flexcop_dma_remap(fc,dma_idx,0);
 
-	deb_info("%s\n",__FUNCTION__);
+	deb_info("%s\n",__func__);
 	v.dma_0x4_write.dmatimer = cycles;
 	fc->write_ibi_reg(fc,r,v);
 	return 0;
drivers/media/dvb/b2c2/flexcop-sram.c +14 -14
index 01570ec..cda6952 100644
@@ -90,7 +90,7 @@ static void flexcop_sram_write(struct adapter *adapter, u32 bank, u32 addr, u8 *
 		};
 
 		if (retries == 0)
-			printk("%s: SRAM timeout\n", __FUNCTION__);
+			printk("%s: SRAM timeout\n", __func__);
 
 		write_reg_dw(adapter, 0x700, command);
 
@@ -115,7 +115,7 @@ static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf,
 		};
 
 		if (retries == 0)
-			printk("%s: SRAM timeout\n", __FUNCTION__);
+			printk("%s: SRAM timeout\n", __func__);
 
 		write_reg_dw(adapter, 0x700, command);
 
@@ -127,7 +127,7 @@ static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf,
 		};
 
 		if (retries == 0)
-			printk("%s: SRAM timeout\n", __FUNCTION__);
+			printk("%s: SRAM timeout\n", __func__);
 
 		value = read_reg_dw(adapter, 0x700) >> 0x10;
 
@@ -240,13 +240,13 @@ static void sram_init(struct adapter *adapter)
 
 		adapter->dw_sram_type = tmp & 0x30000;
 
-		ddprintk("%s: dw_sram_type = %x\n", __FUNCTION__, adapter->dw_sram_type);
+		ddprintk("%s: dw_sram_type = %x\n", __func__, adapter->dw_sram_type);
 
 	} else {
 
 		adapter->dw_sram_type = 0x10000;
 
-		ddprintk("%s: dw_sram_type = %x\n", __FUNCTION__, adapter->dw_sram_type);
+		ddprintk("%s: dw_sram_type = %x\n", __func__, adapter->dw_sram_type);
 	}
 
 	/* return value is never used? */
@@ -257,7 +257,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
 {
 	u8 tmp1, tmp2;
 
-	dprintk("%s: mask = %x, addr = %x\n", __FUNCTION__, mask, addr);
+	dprintk("%s: mask = %x, addr = %x\n", __func__, mask, addr);
 
 	sram_set_size(adapter, mask);
 	sram_init(adapter);
@@ -275,7 +275,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
 	sram_read(adapter, addr, &tmp2, 1);
 	sram_read(adapter, addr, &tmp2, 1);
 
-	dprintk("%s: wrote 0xa5, read 0x%2x\n", __FUNCTION__, tmp2);
+	dprintk("%s: wrote 0xa5, read 0x%2x\n", __func__, tmp2);
 
 	if (tmp2 != 0xa5)
 		return 0;
@@ -293,7 +293,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
 	sram_read(adapter, addr, &tmp2, 1);
 	sram_read(adapter, addr, &tmp2, 1);
 
-	dprintk("%s: wrote 0x5a, read 0x%2x\n", __FUNCTION__, tmp2);
+	dprintk("%s: wrote 0x5a, read 0x%2x\n", __func__, tmp2);
 
 	if (tmp2 != 0x5a)
 		return 0;
@@ -340,7 +340,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 
 	tmp3 = read_reg_dw(adapter, 0x71c);
 
-	dprintk("%s: tmp3 = %x\n", __FUNCTION__, tmp3);
+	dprintk("%s: tmp3 = %x\n", __func__, tmp3);
 
 	write_reg_dw(adapter, 0x71c, tmp2);
 
@@ -351,7 +351,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 		sram_init(adapter);
 		write_reg_dw(adapter, 0x208, tmp);
 
-		dprintk("%s: sram size = 32K\n", __FUNCTION__);
+		dprintk("%s: sram size = 32K\n", __func__);
 
 		return 32;
 	}
@@ -361,7 +361,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 		sram_init(adapter);
 		write_reg_dw(adapter, 0x208, tmp);
 
-		dprintk("%s: sram size = 128K\n", __FUNCTION__);
+		dprintk("%s: sram size = 128K\n", __func__);
 
 		return 128;
 	}
@@ -371,7 +371,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 		sram_init(adapter);
 		write_reg_dw(adapter, 0x208, tmp);
 
-		dprintk("%s: sram size = 64K\n", __FUNCTION__);
+		dprintk("%s: sram size = 64K\n", __func__);
 
 		return 64;
 	}
@@ -381,7 +381,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 		sram_init(adapter);
 		write_reg_dw(adapter, 0x208, tmp);
 
-		dprintk("%s: sram size = 32K\n", __FUNCTION__);
+		dprintk("%s: sram size = 32K\n", __func__);
 
 		return 32;
 	}
@@ -390,7 +390,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
 	sram_init(adapter);
 	write_reg_dw(adapter, 0x208, tmp);
 
-	dprintk("%s: SRAM detection failed. Set to 32K \n", __FUNCTION__);
+	dprintk("%s: SRAM detection failed. Set to 32K \n", __func__);
 
 	return 0;
 }
drivers/media/dvb/bt8xx/dst.c +1 -1
index 307ff35..75711bd 100644
@@ -1290,7 +1290,7 @@ static int dst_get_signal(struct dst_state *state)
 {
 	int retval;
 	u8 get_signal[] = { 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb };
-	//dprintk("%s: Getting Signal strength and other parameters\n", __FUNCTION__);
+	//dprintk("%s: Getting Signal strength and other parameters\n", __func__);
 	if ((state->diseq_flags & ATTEMPT_TUNE) == 0) {
 		state->decode_lock = state->decode_strength = state->decode_snr = 0;
 		return 0;
drivers/media/dvb/bt8xx/dst_ca.c +5 -5
index 50bc32a..0258451 100644
@@ -36,13 +36,13 @@
 #define dprintk(x, y, z, format, arg...) do {						\
 	if (z) {									\
 		if	((x > DST_CA_ERROR) && (x > y))					\
-			printk(KERN_ERR "%s: " format "\n", __FUNCTION__ , ##arg);	\
+			printk(KERN_ERR "%s: " format "\n", __func__ , ##arg);	\
 		else if	((x > DST_CA_NOTICE) && (x > y))				\
-			printk(KERN_NOTICE "%s: " format "\n", __FUNCTION__ , ##arg);	\
+			printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg);	\
 		else if ((x > DST_CA_INFO) && (x > y))					\
-			printk(KERN_INFO "%s: " format "\n", __FUNCTION__ , ##arg);	\
+			printk(KERN_INFO "%s: " format "\n", __func__ , ##arg);	\
 		else if ((x > DST_CA_DEBUG) && (x > y))					\
-			printk(KERN_DEBUG "%s: " format "\n", __FUNCTION__ , ##arg);	\
+			printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg);	\
 	} else {									\
 		if (x > y)								\
 			printk(format, ## arg);						\
@@ -162,7 +162,7 @@ static int ca_get_app_info(struct dst_state *state)
 	dprintk(verbose, DST_CA_INFO, 1, " ================================ CI Module Application Info ======================================");
 	dprintk(verbose, DST_CA_INFO, 1, " Application Type=[%d], Application Vendor=[%d], Vendor Code=[%d]\n%s: Application info=[%s]",
 		state->messages[7], (state->messages[8] << 8) | state->messages[9],
-		(state->messages[10] << 8) | state->messages[11], __FUNCTION__, (char *)(&state->messages[12]));
+		(state->messages[10] << 8) | state->messages[11], __func__, (char *)(&state->messages[12]));
 	dprintk(verbose, DST_CA_INFO, 1, " ==================================================================================================");
 
 	// Transform dst message to correct application_info message
drivers/media/dvb/bt8xx/dvb-bt8xx.c +1 -1
index dedd30a..b93efec 100644
@@ -670,7 +670,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
 		state->dst_ca = NULL;
 		/*	DST is not a frontend, attaching the ASIC	*/
 		if (dvb_attach(dst_attach, state, &card->dvb_adapter) == NULL) {
-			printk("%s: Could not find a Twinhan DST.\n", __FUNCTION__);
+			printk("%s: Could not find a Twinhan DST.\n", __func__);
 			break;
 		}
 		/*	Attach other DST peripherals if any		*/
drivers/media/dvb/cinergyT2/cinergyT2.c +1 -1
index db08b0a..29b2459 100644
@@ -62,7 +62,7 @@ MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
 do {									\
 	if ((debug & level)) {						\
 		printk("%s: %s(): ", KBUILD_MODNAME,			\
-		       __FUNCTION__);					\
+		       __func__);					\
 		printk(args); }						\
 } while (0)
 
drivers/media/dvb/dvb-core/dmxdev.c +5 -5
index f94bc31..0d9bacf 100644
@@ -126,7 +126,7 @@ static int dvb_dvr_open(struct inode *inode, struct file *file)
 	struct dmxdev *dmxdev = dvbdev->priv;
 	struct dmx_frontend *front;
 
-	dprintk("function : %s\n", __FUNCTION__);
+	dprintk("function : %s\n", __func__);
 
 	if (mutex_lock_interruptible(&dmxdev->mutex))
 		return -ERESTARTSYS;
@@ -550,7 +550,7 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
 								   dvb_dmxdev_section_callback);
 			if (ret < 0) {
 				printk("DVB (%s): could not alloc feed\n",
-				       __FUNCTION__);
+				       __func__);
 				return ret;
 			}
 
@@ -558,7 +558,7 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
 					      (para->flags & DMX_CHECK_CRC) ? 1 : 0);
 			if (ret < 0) {
 				printk("DVB (%s): could not set feed\n",
-				       __FUNCTION__);
+				       __func__);
 				dvb_dmxdev_feed_restart(filter);
 				return ret;
 			}
@@ -732,7 +732,7 @@ static int dvb_dmxdev_filter_set(struct dmxdev *dmxdev,
 				 struct dmxdev_filter *dmxdevfilter,
 				 struct dmx_sct_filter_params *params)
 {
-	dprintk("function : %s\n", __FUNCTION__);
+	dprintk("function : %s\n", __func__);
 
 	dvb_dmxdev_filter_stop(dmxdevfilter);
 
@@ -1038,7 +1038,7 @@ static unsigned int dvb_dvr_poll(struct file *file, poll_table *wait)
 	struct dmxdev *dmxdev = dvbdev->priv;
 	unsigned int mask = 0;
 
-	dprintk("function : %s\n", __FUNCTION__);
+	dprintk("function : %s\n", __func__);
 
 	poll_wait(file, &dmxdev->dvr_buffer.queue, wait);
 
drivers/media/dvb/dvb-core/dvb_ca_en50221.c +18 -18
index 89437fd..8cbdb0e 100644
@@ -250,7 +250,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
 	unsigned long timeout;
 	unsigned long start;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* loop until timeout elapsed */
 	start = jiffies;
@@ -263,7 +263,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
 
 		/* if we got the flags, it was successful! */
 		if (res & waitfor) {
-			dprintk("%s succeeded timeout:%lu\n", __FUNCTION__, jiffies - start);
+			dprintk("%s succeeded timeout:%lu\n", __func__, jiffies - start);
 			return 0;
 		}
 
@@ -276,7 +276,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
 		msleep(1);
 	}
 
-	dprintk("%s failed timeout:%lu\n", __FUNCTION__, jiffies - start);
+	dprintk("%s failed timeout:%lu\n", __func__, jiffies - start);
 
 	/* if we get here, we've timed out */
 	return -ETIMEDOUT;
@@ -297,7 +297,7 @@ static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot)
 	int buf_size;
 	u8 buf[2];
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* we'll be determining these during this function */
 	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)
 {
 	int configoption;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* set the config option */
 	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
 	u8 buf[HOST_LINK_BUF_SIZE];
 	int i;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* check if we have space for a link buf in the rx_buffer */
 	if (ebuf == NULL) {
@@ -708,7 +708,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * b
 	int status;
 	int i;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 
 	// sanity check
@@ -785,7 +785,7 @@ EXPORT_SYMBOL(dvb_ca_en50221_camchange_irq);
  */
 static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
 {
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	ca->pub->slot_shutdown(ca->pub, slot);
 	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)
 static void dvb_ca_en50221_thread_wakeup(struct dvb_ca_private *ca)
 {
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	ca->wakeup = 1;
 	mb();
@@ -964,7 +964,7 @@ static int dvb_ca_en50221_thread(void *data)
 	int pktcount;
 	void *rxbuf;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* choose the correct initial delay */
 	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,
 	int err = 0;
 	int slot;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	switch (cmd) {
 	case CA_RESET:
@@ -1266,7 +1266,7 @@ static ssize_t dvb_ca_en50221_io_write(struct file *file,
 	unsigned long timeout;
 	int written;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* Incoming packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */
 	if (count < 2)
@@ -1401,7 +1401,7 @@ static ssize_t dvb_ca_en50221_io_read(struct file *file, char __user * buf,
 	int pktlen;
 	int dispose = 0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* Outgoing packet has a 2 byte header. hdr[0] = slot_id, hdr[1] = connection_id */
 	if (count < 2)
@@ -1490,7 +1490,7 @@ static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file)
 	int err;
 	int i;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	if (!try_module_get(ca->pub->owner))
 		return -EIO;
@@ -1534,7 +1534,7 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
 	struct dvb_ca_private *ca = dvbdev->priv;
 	int err;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* mark the CA device as closed */
 	ca->open = 0;
@@ -1564,7 +1564,7 @@ static unsigned int dvb_ca_en50221_io_poll(struct file *file, poll_table * wait)
 	int slot;
 	int result = 0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1) {
 		mask |= POLLIN;
@@ -1626,7 +1626,7 @@ int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter,
 	struct dvb_ca_private *ca = NULL;
 	int i;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	if (slot_count < 1)
 		return -EINVAL;
@@ -1704,7 +1704,7 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
 	struct dvb_ca_private *ca = pubca->private;
 	int i;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* shutdown the thread if there was one */
 	kthread_stop(ca->thread);
drivers/media/dvb/dvb-core/dvb_demux.c +2 -2
index 7959020..09a69c8 100644
@@ -553,7 +553,7 @@ static void dvb_demux_feed_add(struct dvb_demux_feed *feed)
 	spin_lock_irq(&feed->demux->lock);
 	if (dvb_demux_feed_find(feed)) {
 		printk(KERN_ERR "%s: feed already in list (type=%x state=%x pid=%x)\n",
-		       __FUNCTION__, feed->type, feed->state, feed->pid);
+		       __func__, feed->type, feed->state, feed->pid);
 		goto out;
 	}
 
@@ -567,7 +567,7 @@ static void dvb_demux_feed_del(struct dvb_demux_feed *feed)
 	spin_lock_irq(&feed->demux->lock);
 	if (!(dvb_demux_feed_find(feed))) {
 		printk(KERN_ERR "%s: feed not in list (type=%x state=%x pid=%x)\n",
-		       __FUNCTION__, feed->type, feed->state, feed->pid);
+		       __func__, feed->type, feed->state, feed->pid);
 		goto out;
 	}
 
drivers/media/dvb/dvb-core/dvb_frontend.c +15 -15
index 925cfa6..2dddd08 100644
@@ -135,7 +135,7 @@ static void dvb_frontend_add_event(struct dvb_frontend *fe, fe_status_t status)
 	struct dvb_frontend_event *e;
 	int wp;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (mutex_lock_interruptible (&events->mtx))
 		return;
@@ -171,7 +171,7 @@ static int dvb_frontend_get_event(struct dvb_frontend *fe,
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 	struct dvb_fe_events *events = &fepriv->events;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (events->overflow) {
 		events->overflow = 0;
@@ -237,7 +237,7 @@ static void dvb_frontend_swzigzag_update_delay(struct dvb_frontend_private *fepr
 {
 	int q2;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (locked)
 		(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
 
 	dprintk("%s: drift:%i inversion:%i auto_step:%i "
 		"auto_sub_step:%i started_auto_step:%i\n",
-		__FUNCTION__, fepriv->lnb_drift, fepriv->inversion,
+		__func__, fepriv->lnb_drift, fepriv->inversion,
 		fepriv->auto_step, fepriv->auto_sub_step, fepriv->started_auto_step);
 
 	/* set the frontend itself */
@@ -511,7 +511,7 @@ static int dvb_frontend_thread(void *data)
 	fe_status_t s;
 	struct dvb_frontend_parameters *params;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	fepriv->check_wrapped = 0;
 	fepriv->quality = 0;
@@ -597,7 +597,7 @@ static void dvb_frontend_stop(struct dvb_frontend *fe)
 {
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	fepriv->exit = 1;
 	mb();
@@ -665,7 +665,7 @@ static int dvb_frontend_start(struct dvb_frontend *fe)
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 	struct task_struct *fe_thread;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (fepriv->thread) {
 		if (!fepriv->exit)
@@ -763,7 +763,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 	int err = -EOPNOTSUPP;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (fepriv->exit)
 		return -ENODEV;
@@ -895,7 +895,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
 			int i;
 			u8 last = 1;
 			if (dvb_frontend_debug)
-				printk("%s switch command: 0x%04lx\n", __FUNCTION__, cmd);
+				printk("%s switch command: 0x%04lx\n", __func__, cmd);
 			do_gettimeofday(&nexttime);
 			if (dvb_frontend_debug)
 				memcpy(&tv[0], &nexttime, sizeof(struct timeval));
@@ -919,7 +919,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
 			}
 			if (dvb_frontend_debug) {
 				printk("%s(%d): switch delay (should be 32k followed by all 8k\n",
-					__FUNCTION__, fe->dvb->num);
+					__func__, fe->dvb->num);
 				for (i = 1; i < 10; i++)
 					printk("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i]));
 			}
@@ -1037,7 +1037,7 @@ static unsigned int dvb_frontend_poll(struct file *file, struct poll_table_struc
 	struct dvb_frontend *fe = dvbdev->priv;
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	poll_wait (file, &fepriv->events.wait_queue, wait);
 
@@ -1054,7 +1054,7 @@ static int dvb_frontend_open(struct inode *inode, struct file *file)
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 	int ret;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) {
 		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)
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
 	int ret;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if ((file->f_flags & O_ACCMODE) != O_RDONLY)
 		fepriv->release_jiffies = jiffies;
@@ -1135,7 +1135,7 @@ int dvb_register_frontend(struct dvb_adapter* dvb,
 		.kernel_ioctl = dvb_frontend_ioctl
 	};
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (mutex_lock_interruptible(&frontend_mutex))
 		return -ERESTARTSYS;
@@ -1169,7 +1169,7 @@ EXPORT_SYMBOL(dvb_register_frontend);
 int dvb_unregister_frontend(struct dvb_frontend* fe)
 {
 	struct dvb_frontend_private *fepriv = fe->frontend_priv;
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	mutex_lock(&frontend_mutex);
 	dvb_frontend_stop (fe);
drivers/media/dvb/dvb-core/dvb_net.c +15 -15
index ed3f826..b18188d 100644
@@ -965,17 +965,17 @@ static int dvb_net_feed_start(struct net_device *dev)
 	struct dmx_demux *demux = priv->demux;
 	unsigned char *mac = (unsigned char *) dev->dev_addr;
 
-	dprintk("%s: rx_mode %i\n", __FUNCTION__, priv->rx_mode);
+	dprintk("%s: rx_mode %i\n", __func__, priv->rx_mode);
 	mutex_lock(&priv->mutex);
 	if (priv->tsfeed || priv->secfeed || priv->secfilter || priv->multi_secfilter[0])
-		printk("%s: BUG %d\n", __FUNCTION__, __LINE__);
+		printk("%s: BUG %d\n", __func__, __LINE__);
 
 	priv->secfeed=NULL;
 	priv->secfilter=NULL;
 	priv->tsfeed = NULL;
 
 	if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) {
-		dprintk("%s: alloc secfeed\n", __FUNCTION__);
+		dprintk("%s: alloc secfeed\n", __func__);
 		ret=demux->allocate_section_feed(demux, &priv->secfeed,
 					 dvb_net_sec_callback);
 		if (ret<0) {
@@ -993,38 +993,38 @@ static int dvb_net_feed_start(struct net_device *dev)
 		}
 
 		if (priv->rx_mode != RX_MODE_PROMISC) {
-			dprintk("%s: set secfilter\n", __FUNCTION__);
+			dprintk("%s: set secfilter\n", __func__);
 			dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_normal);
 		}
 
 		switch (priv->rx_mode) {
 		case RX_MODE_MULTI:
 			for (i = 0; i < priv->multi_num; i++) {
-				dprintk("%s: set multi_secfilter[%d]\n", __FUNCTION__, i);
+				dprintk("%s: set multi_secfilter[%d]\n", __func__, i);
 				dvb_net_filter_sec_set(dev, &priv->multi_secfilter[i],
 						       priv->multi_macs[i], mask_normal);
 			}
 			break;
 		case RX_MODE_ALL_MULTI:
 			priv->multi_num=1;
-			dprintk("%s: set multi_secfilter[0]\n", __FUNCTION__);
+			dprintk("%s: set multi_secfilter[0]\n", __func__);
 			dvb_net_filter_sec_set(dev, &priv->multi_secfilter[0],
 					       mac_allmulti, mask_allmulti);
 			break;
 		case RX_MODE_PROMISC:
 			priv->multi_num=0;
-			dprintk("%s: set secfilter\n", __FUNCTION__);
+			dprintk("%s: set secfilter\n", __func__);
 			dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_promisc);
 			break;
 		}
 
-		dprintk("%s: start filtering\n", __FUNCTION__);
+		dprintk("%s: start filtering\n", __func__);
 		priv->secfeed->start_filtering(priv->secfeed);
 	} else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) {
 		struct timespec timeout = { 0, 10000000 }; // 10 msec
 
 		/* we have payloads encapsulated in TS */
-		dprintk("%s: alloc tsfeed\n", __FUNCTION__);
+		dprintk("%s: alloc tsfeed\n", __func__);
 		ret = demux->allocate_ts_feed(demux, &priv->tsfeed, dvb_net_ts_callback);
 		if (ret < 0) {
 			printk("%s: could not allocate ts feed\n", dev->name);
@@ -1048,7 +1048,7 @@ static int dvb_net_feed_start(struct net_device *dev)
 			goto error;
 		}
 
-		dprintk("%s: start filtering\n", __FUNCTION__);
+		dprintk("%s: start filtering\n", __func__);
 		priv->tsfeed->start_filtering(priv->tsfeed);
 	} else
 		ret = -EINVAL;
@@ -1063,17 +1063,17 @@ static int dvb_net_feed_stop(struct net_device *dev)
 	struct dvb_net_priv *priv = dev->priv;
 	int i, ret = 0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	mutex_lock(&priv->mutex);
 	if (priv->feedtype == DVB_NET_FEEDTYPE_MPE) {
 		if (priv->secfeed) {
 			if (priv->secfeed->is_filtering) {
-				dprintk("%s: stop secfeed\n", __FUNCTION__);
+				dprintk("%s: stop secfeed\n", __func__);
 				priv->secfeed->stop_filtering(priv->secfeed);
 			}
 
 			if (priv->secfilter) {
-				dprintk("%s: release secfilter\n", __FUNCTION__);
+				dprintk("%s: release secfilter\n", __func__);
 				priv->secfeed->release_filter(priv->secfeed,
 							      priv->secfilter);
 				priv->secfilter=NULL;
@@ -1082,7 +1082,7 @@ static int dvb_net_feed_stop(struct net_device *dev)
 			for (i=0; i<priv->multi_num; i++) {
 				if (priv->multi_secfilter[i]) {
 					dprintk("%s: release multi_filter[%d]\n",
-						__FUNCTION__, i);
+						__func__, i);
 					priv->secfeed->release_filter(priv->secfeed,
 								      priv->multi_secfilter[i]);
 					priv->multi_secfilter[i] = NULL;
@@ -1096,7 +1096,7 @@ static int dvb_net_feed_stop(struct net_device *dev)
 	} else if (priv->feedtype == DVB_NET_FEEDTYPE_ULE) {
 		if (priv->tsfeed) {
 			if (priv->tsfeed->is_filtering) {
-				dprintk("%s: stop tsfeed\n", __FUNCTION__);
+				dprintk("%s: stop tsfeed\n", __func__);
 				priv->tsfeed->stop_filtering(priv->tsfeed);
 			}
 			priv->demux->release_ts_feed(priv->demux, priv->tsfeed);
drivers/media/dvb/dvb-core/dvbdev.c +2 -2
index 18738fa..636d564 100644
@@ -196,7 +196,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
 	if ((id = dvbdev_get_free_id (adap, type)) < 0){
 		mutex_unlock(&dvbdev_register_lock);
 		*pdvbdev = NULL;
-		printk(KERN_ERR "%s: couldn't find free device id\n", __FUNCTION__);
+		printk(KERN_ERR "%s: couldn't find free device id\n", __func__);
 		return -ENFILE;
 	}
 
@@ -235,7 +235,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
 			       "dvb%d.%s%d", adap->num, dnames[type], id);
 	if (IS_ERR(clsdev)) {
 		printk(KERN_ERR "%s: failed to create device dvb%d.%s%d (%ld)\n",
-		       __FUNCTION__, adap->num, dnames[type], id, PTR_ERR(clsdev));
+		       __func__, adap->num, dnames[type], id, PTR_ERR(clsdev));
 		return PTR_ERR(clsdev);
 	}
 
drivers/media/dvb/dvb-usb/cxusb.c +3 -3
index c583650..7e3cf5a 100644
@@ -488,14 +488,14 @@ static int dvico_bluebird_xc2028_callback(void *ptr, int command, int arg)
 
 	switch (command) {
 	case XC2028_TUNER_RESET:
-		deb_info("%s: XC2028_TUNER_RESET %d\n", __FUNCTION__, arg);
+		deb_info("%s: XC2028_TUNER_RESET %d\n", __func__, arg);
 		cxusb_bluebird_gpio_pulse(d, 0x01, 1);
 		break;
 	case XC2028_RESET_CLK:
-		deb_info("%s: XC2028_RESET_CLK %d\n", __FUNCTION__, arg);
+		deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg);
 		break;
 	default:
-		deb_info("%s: unknown command %d, arg %d\n", __FUNCTION__,
+		deb_info("%s: unknown command %d, arg %d\n", __func__,
 			 command, arg);
 		return -EINVAL;
 	}
drivers/media/dvb/dvb-usb/gp8psk-fe.c +2 -2
index e37142d..262a858 100644
@@ -152,7 +152,7 @@ static int gp8psk_fe_send_diseqc_msg (struct dvb_frontend* fe,
 {
 	struct gp8psk_fe_state *st = fe->demodulator_priv;
 
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	if (gp8psk_usb_out_op(st->d,SEND_DISEQC_COMMAND, m->msg[0], 0,
 			m->msg, m->msg_len)) {
@@ -167,7 +167,7 @@ static int gp8psk_fe_send_diseqc_burst (struct dvb_frontend* fe,
 	struct gp8psk_fe_state *st = fe->demodulator_priv;
 	u8 cmd;
 
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	/* These commands are certainly wrong */
 	cmd = (burst == SEC_MINI_A) ? 0x00 : 0x01;
drivers/media/dvb/dvb-usb/m920x.c +6 -6
index a956bc5..29ec2b9 100644
@@ -477,7 +477,7 @@ static struct qt1010_config m920x_qt1010_config = {
 /* Callbacks for DVB USB */
 static int m920x_mt352_frontend_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if ((adap->fe = dvb_attach(mt352_attach,
 				   &m920x_mt352_config,
@@ -489,7 +489,7 @@ static int m920x_mt352_frontend_attach(struct dvb_usb_adapter *adap)
 
 static int m920x_tda10046_08_frontend_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if ((adap->fe = dvb_attach(tda10046_attach,
 				   &m920x_tda10046_08_config,
@@ -501,7 +501,7 @@ static int m920x_tda10046_08_frontend_attach(struct dvb_usb_adapter *adap)
 
 static int m920x_tda10046_0b_frontend_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if ((adap->fe = dvb_attach(tda10046_attach,
 				   &m920x_tda10046_0b_config,
@@ -513,7 +513,7 @@ static int m920x_tda10046_0b_frontend_attach(struct dvb_usb_adapter *adap)
 
 static int m920x_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if (dvb_attach(qt1010_attach, adap->fe, &adap->dev->i2c_adap, &m920x_qt1010_config) == NULL)
 		return -ENODEV;
@@ -523,7 +523,7 @@ static int m920x_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
 
 static int m920x_tda8275_60_tuner_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if (dvb_attach(tda827x_attach, adap->fe, 0x60, &adap->dev->i2c_adap, NULL) == NULL)
 		return -ENODEV;
@@ -533,7 +533,7 @@ static int m920x_tda8275_60_tuner_attach(struct dvb_usb_adapter *adap)
 
 static int m920x_tda8275_61_tuner_attach(struct dvb_usb_adapter *adap)
 {
-	deb("%s\n",__FUNCTION__);
+	deb("%s\n",__func__);
 
 	if (dvb_attach(tda827x_attach, adap->fe, 0x61, &adap->dev->i2c_adap, NULL) == NULL)
 		return -ENODEV;
drivers/media/dvb/dvb-usb/vp702x-fe.c +9 -9
index c3fdc7c..ccc7e44 100644
@@ -67,7 +67,7 @@ static int vp702x_fe_read_status(struct dvb_frontend* fe, fe_status_t *status)
 {
 	struct vp702x_fe_state *st = fe->demodulator_priv;
 	vp702x_fe_refresh_state(st);
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	if (st->lock == 0)
 		*status = FE_HAS_LOCK | FE_HAS_SYNC | FE_HAS_VITERBI | FE_HAS_SIGNAL | FE_HAS_CARRIER;
@@ -121,7 +121,7 @@ static int vp702x_fe_read_snr(struct dvb_frontend* fe, u16 *snr)
 
 static int vp702x_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings *tune)
 {
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 	tune->min_delay_ms = 2000;
 	return 0;
 }
@@ -183,21 +183,21 @@ static int vp702x_fe_set_frontend(struct dvb_frontend* fe,
 static int vp702x_fe_init(struct dvb_frontend *fe)
 {
 	struct vp702x_fe_state *st = fe->demodulator_priv;
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 	vp702x_usb_in_op(st->d, RESET_TUNER, 0, 0, NULL, 0);
 	return 0;
 }
 
 static int vp702x_fe_sleep(struct dvb_frontend *fe)
 {
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 	return 0;
 }
 
 static int vp702x_fe_get_frontend(struct dvb_frontend* fe,
 				  struct dvb_frontend_parameters *fep)
 {
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 	return 0;
 }
 
@@ -208,7 +208,7 @@ static int vp702x_fe_send_diseqc_msg (struct dvb_frontend* fe,
 	u8 cmd[8],ibuf[10];
 	memset(cmd,0,8);
 
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	if (m->msg_len > 4)
 		return -EINVAL;
@@ -230,7 +230,7 @@ static int vp702x_fe_send_diseqc_msg (struct dvb_frontend* fe,
 
 static int vp702x_fe_send_diseqc_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t burst)
 {
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 	return 0;
 }
 
@@ -238,7 +238,7 @@ static int vp702x_fe_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
 {
 	struct vp702x_fe_state *st = fe->demodulator_priv;
 	u8 ibuf[10];
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	st->tone_mode = tone;
 
@@ -263,7 +263,7 @@ static int vp702x_fe_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t
 {
 	struct vp702x_fe_state *st = fe->demodulator_priv;
 	u8 ibuf[10];
-	deb_fe("%s\n",__FUNCTION__);
+	deb_fe("%s\n",__func__);
 
 	st->voltage = voltage;
 
drivers/media/dvb/frontends/bcm3510.c +2 -2
index a913f49..d268e65 100644
@@ -91,7 +91,7 @@ static int bcm3510_writebytes (struct bcm3510_state *state, u8 reg, u8 *buf, u8
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
 
 		deb_info("%s: i2c write error (addr %02x, reg %02x, err == %i)\n",
-			__FUNCTION__, state->config->demod_address, reg,  err);
+			__func__, state->config->demod_address, reg,  err);
 		return -EREMOTEIO;
 	}
 
@@ -110,7 +110,7 @@ static int bcm3510_readbytes (struct bcm3510_state *state, u8 reg, u8 *buf, u8 l
 
 	if ((err = i2c_transfer (state->i2c, msg, 2)) != 2) {
 		deb_info("%s: i2c read error (addr %02x, reg %02x, err == %i)\n",
-			__FUNCTION__, state->config->demod_address, reg,  err);
+			__func__, state->config->demod_address, reg,  err);
 		return -EREMOTEIO;
 	}
 	deb_i2c("i2c rd %02x: ",reg);
drivers/media/dvb/frontends/bcm3510.h +1 -1
index 7e4f95e..f4575c0 100644
@@ -41,7 +41,7 @@ extern struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,
 static inline struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,
 						  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_BCM3510
drivers/media/dvb/frontends/cx22700.c +6 -6
index 11a4968..ace5cb1 100644
@@ -73,13 +73,13 @@ static int cx22700_writereg (struct cx22700_state* state, u8 reg, u8 data)
 	u8 buf [] = { reg, data };
 	struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 };
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	ret = i2c_transfer (state->i2c, &msg, 1);
 
 	if (ret != 1)
 		printk("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n",
-			__FUNCTION__, reg, data, ret);
+			__func__, reg, data, ret);
 
 	return (ret != 1) ? -1 : 0;
 }
@@ -92,7 +92,7 @@ static int cx22700_readreg (struct cx22700_state* state, u8 reg)
 	struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 },
 			   { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } };
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	ret = i2c_transfer (state->i2c, msg, 2);
 
@@ -105,7 +105,7 @@ static int cx22700_set_inversion (struct cx22700_state* state, int inversion)
 {
 	u8 val;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	switch (inversion) {
 	case INVERSION_AUTO:
@@ -127,7 +127,7 @@ static int cx22700_set_tps (struct cx22700_state *state, struct dvb_ofdm_paramet
 	static const u8 fec_tab [6] = { 0, 1, 2, 0, 3, 4 };
 	u8 val;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (p->code_rate_HP < FEC_1_2 || p->code_rate_HP > FEC_7_8)
 		return -EINVAL;
@@ -191,7 +191,7 @@ static int cx22700_get_tps (struct cx22700_state* state, struct dvb_ofdm_paramet
 						    FEC_5_6, FEC_7_8 };
 	u8 val;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (!(cx22700_readreg(state, 0x07) & 0x20))  /*  tps valid? */
 		return -EAGAIN;
drivers/media/dvb/frontends/cx22700.h +1 -1
index 7ac3369..4757a93 100644
@@ -38,7 +38,7 @@ extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
 static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_CX22700
drivers/media/dvb/frontends/cx22702.c +12 -12
index 1dc164d..cd2e5a8 100644
@@ -90,7 +90,7 @@ static int cx22702_writereg (struct cx22702_state* state, u8 reg, u8 data)
 
 	if (ret != 1)
 		printk("%s: writereg error (reg == 0x%02x, val == 0x%02x, ret == %i)\n",
-			__FUNCTION__, reg, data, ret);
+			__func__, reg, data, ret);
 
 	return (ret != 1) ? -1 : 0;
 }
@@ -108,7 +108,7 @@ static u8 cx22702_readreg (struct cx22702_state* state, u8 reg)
 	ret = i2c_transfer(state->i2c, msg, 2);
 
 	if (ret != 2)
-		printk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret);
+		printk("%s: readreg error (ret == %i)\n", __func__, ret);
 
 	return b1[0];
 }
@@ -195,7 +195,7 @@ static int cx22702_get_tps (struct cx22702_state *state, struct dvb_ofdm_paramet
 static int cx22702_i2c_gate_ctrl(struct dvb_frontend* fe, int enable)
 {
 	struct cx22702_state* state = fe->demodulator_priv;
-	dprintk ("%s(%d)\n", __FUNCTION__, enable);
+	dprintk ("%s(%d)\n", __func__, enable);
 	if (enable)
 		return cx22702_writereg (state, 0x0D, cx22702_readreg(state, 0x0D) & 0xfe);
 	else
@@ -228,7 +228,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		cx22702_writereg(state, 0x0C, cx22702_readreg(state, 0x0C) &0xcf );
 		break;
 	default:
-		dprintk ("%s: invalid bandwidth\n",__FUNCTION__);
+		dprintk ("%s: invalid bandwidth\n",__func__);
 		return -EINVAL;
 	}
 
@@ -250,7 +250,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		cx22702_writereg(state, 0x0B, cx22702_readreg(state, 0x0B) & 0xfc );
 		cx22702_writereg(state, 0x0C, (cx22702_readreg(state, 0x0C) & 0xBF) | 0x40 );
 		cx22702_writereg(state, 0x00, 0x01); /* Begin aquisition */
-		dprintk("%s: Autodetecting\n",__FUNCTION__);
+		dprintk("%s: Autodetecting\n",__func__);
 		return 0;
 	}
 
@@ -261,7 +261,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		case QAM_16: val = (val&0xe7)|0x08; break;
 		case QAM_64: val = (val&0xe7)|0x10; break;
 		default:
-			dprintk ("%s: invalid constellation\n",__FUNCTION__);
+			dprintk ("%s: invalid constellation\n",__func__);
 			return -EINVAL;
 	}
 	switch(p->u.ofdm.hierarchy_information) {
@@ -270,7 +270,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		case    HIERARCHY_2: val = (val&0xf8)|2; break;
 		case    HIERARCHY_4: val = (val&0xf8)|3; break;
 		default:
-			dprintk ("%s: invalid hierarchy\n",__FUNCTION__);
+			dprintk ("%s: invalid hierarchy\n",__func__);
 			return -EINVAL;
 	}
 	cx22702_writereg (state, 0x06, val);
@@ -284,7 +284,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		case FEC_5_6: val = (val&0xc7)|0x18; break;
 		case FEC_7_8: val = (val&0xc7)|0x20; break;
 		default:
-			dprintk ("%s: invalid code_rate_HP\n",__FUNCTION__);
+			dprintk ("%s: invalid code_rate_HP\n",__func__);
 			return -EINVAL;
 	}
 	switch(p->u.ofdm.code_rate_LP) {
@@ -295,7 +295,7 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		case FEC_5_6: val = (val&0xf8)|3; break;
 		case FEC_7_8: val = (val&0xf8)|4; break;
 		default:
-			dprintk ("%s: invalid code_rate_LP\n",__FUNCTION__);
+			dprintk ("%s: invalid code_rate_LP\n",__func__);
 			return -EINVAL;
 	}
 	cx22702_writereg (state, 0x07, val);
@@ -307,14 +307,14 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet
 		case  GUARD_INTERVAL_1_8: val = (val&0xf3)|0x08; break;
 		case  GUARD_INTERVAL_1_4: val = (val&0xf3)|0x0c; break;
 		default:
-			dprintk ("%s: invalid guard_interval\n",__FUNCTION__);
+			dprintk ("%s: invalid guard_interval\n",__func__);
 			return -EINVAL;
 	}
 	switch(p->u.ofdm.transmission_mode) {
 		case TRANSMISSION_MODE_2K: val = (val&0xfc); break;
 		case TRANSMISSION_MODE_8K: val = (val&0xfc)|1; break;
 		default:
-			dprintk ("%s: invalid transmission_mode\n",__FUNCTION__);
+			dprintk ("%s: invalid transmission_mode\n",__func__);
 			return -EINVAL;
 	}
 	cx22702_writereg(state, 0x08, val);
@@ -360,7 +360,7 @@ static int cx22702_read_status(struct dvb_frontend* fe, fe_status_t* status)
 	reg23 = cx22702_readreg (state, 0x23);
 
 	dprintk ("%s: status demod=0x%02x agc=0x%02x\n"
-		,__FUNCTION__,reg0A,reg23);
+		,__func__,reg0A,reg23);
 
 	if(reg0A & 0x10) {
 		*status |= FE_HAS_LOCK;
drivers/media/dvb/frontends/cx22702.h +1 -1
index 9cd64da..8af766a 100644
@@ -48,7 +48,7 @@ extern struct dvb_frontend* cx22702_attach(const struct cx22702_config* config,
 static inline struct dvb_frontend* cx22702_attach(const struct cx22702_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_CX22702
drivers/media/dvb/frontends/cx24110.c +3 -3
index b03d828..87ae29d 100644
@@ -121,7 +121,7 @@ static int cx24110_writereg (struct cx24110_state* state, int reg, int data)
 
 	if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) {
 		dprintk ("%s: writereg error (err == %i, reg == 0x%02x,"
-			 " data == 0x%02x)\n", __FUNCTION__, err, reg, data);
+			 " data == 0x%02x)\n", __func__, err, reg, data);
 		return -EREMOTEIO;
 	}
 
@@ -247,7 +247,7 @@ static int cx24110_set_symbolrate (struct cx24110_state* state, u32 srate)
 	static const u32 bands[]={5000000UL,15000000UL,90999000UL/2};
 	int i;
 
-	dprintk("cx24110 debug: entering %s(%d)\n",__FUNCTION__,srate);
+	dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate);
 	if (srate>90999000UL/2)
 		srate=90999000UL/2;
 	if (srate<500000)
@@ -358,7 +358,7 @@ static int cx24110_initfe(struct dvb_frontend* fe)
 /* fixme (low): error handling */
 	int i;
 
-	dprintk("%s: init chip\n", __FUNCTION__);
+	dprintk("%s: init chip\n", __func__);
 
 	for(i = 0; i < ARRAY_SIZE(cx24110_regdata); i++) {
 		cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data);
drivers/media/dvb/frontends/cx24110.h +1 -1
index 0ca3af4..1792adb 100644
@@ -48,7 +48,7 @@ extern struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,
 static inline struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,
 						  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_CX24110
drivers/media/dvb/frontends/cx24123.c +41 -41

284 lines not on this page · raw message

drivers/media/dvb/frontends/cx24123.h +1 -1
index 84f9e4f..00fc2f1 100644
@@ -42,7 +42,7 @@ extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config,
 static inline struct dvb_frontend* cx24123_attach(const struct cx24123_config* config,
 						  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_CX24123
drivers/media/dvb/frontends/dib3000.h +1 -1
index a6d3854..ba91735 100644
@@ -48,7 +48,7 @@ extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config
 static inline struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
 					     struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_DIB3000MB
drivers/media/dvb/frontends/dib3000mc.h +1 -1
index 72d4757..4142ed7 100644
@@ -44,7 +44,7 @@ extern struct dvb_frontend * dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i
 #else
 static inline struct dvb_frontend * dib3000mc_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib3000mc_config *cfg)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_DIB3000MC
drivers/media/dvb/frontends/dvb-pll.c +1 -1
index 8c8d734..e74d24e 100644
@@ -422,7 +422,7 @@ static void tuv1236d_rf(struct dvb_frontend *fe, u8 *buf,
 		default:
 			printk(KERN_WARNING
 			       "%s: unhandled rf input selection: %d",
-			       __FUNCTION__, new_rf);
+			       __func__, new_rf);
 	}
 }
 
drivers/media/dvb/frontends/dvb-pll.h +1 -1
index e93a810..83f85ef 100644
@@ -52,7 +52,7 @@ static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
 					   struct i2c_adapter *i2c,
 					   unsigned int pll_desc_id)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif
drivers/media/dvb/frontends/isl6421.h +1 -1
index ea7f78a..47e4518 100644
@@ -47,7 +47,7 @@ extern struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_a
 static inline struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr,
 						  u8 override_set, u8 override_clear)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_ISL6421
drivers/media/dvb/frontends/l64781.c +1 -1
index 443d904..e1e70e9 100644
@@ -57,7 +57,7 @@ static int l64781_writereg (struct l64781_state* state, u8 reg, u8 data)
 
 	if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1)
 		dprintk ("%s: write_reg error (reg == %02x) = %02x!\n",
-			 __FUNCTION__, reg, ret);
+			 __func__, reg, ret);
 
 	return (ret != 1) ? -1 : 0;
 }
drivers/media/dvb/frontends/l64781.h +1 -1
index cd15f76..1305a9e 100644
@@ -38,7 +38,7 @@ extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
 static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config,
 					  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_L64781
drivers/media/dvb/frontends/lgdt330x.c +19 -19
index bdc9fa8..130adda 100644
@@ -88,7 +88,7 @@ static int i2c_write_demod_bytes (struct lgdt330x_state* state,
 
 	for (i=0; i<len-1; i+=2){
 		if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) {
-			printk(KERN_WARNING "lgdt330x: %s error (addr %02x <- %02x, err = %i)\n", __FUNCTION__, msg.buf[0], msg.buf[1], err);
+			printk(KERN_WARNING "lgdt330x: %s error (addr %02x <- %02x, err = %i)\n", __func__, msg.buf[0], msg.buf[1], err);
 			if (err < 0)
 				return err;
 			else
@@ -117,7 +117,7 @@ static u8 i2c_read_demod_bytes (struct lgdt330x_state* state,
 	int ret;
 	ret = i2c_transfer(state->i2c, msg, 2);
 	if (ret != 2) {
-		printk(KERN_WARNING "lgdt330x: %s: addr 0x%02x select 0x%02x error (ret == %i)\n", __FUNCTION__, state->config->demod_address, reg, ret);
+		printk(KERN_WARNING "lgdt330x: %s: addr 0x%02x select 0x%02x error (ret == %i)\n", __func__, state->config->demod_address, reg, ret);
 	} else {
 		ret = 0;
 	}
@@ -256,7 +256,7 @@ static int lgdt330x_init(struct dvb_frontend* fe)
 		printk (KERN_WARNING "Only LGDT3302 and LGDT3303 are supported chips.\n");
 		err = -ENODEV;
 	}
-	dprintk("%s entered as %s\n", __FUNCTION__, chip_name);
+	dprintk("%s entered as %s\n", __func__, chip_name);
 	if (err < 0)
 		return err;
 	return lgdt330x_SwReset(state);
@@ -334,7 +334,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
 	if (state->current_modulation != param->u.vsb.modulation) {
 		switch(param->u.vsb.modulation) {
 		case VSB_8:
-			dprintk("%s: VSB_8 MODE\n", __FUNCTION__);
+			dprintk("%s: VSB_8 MODE\n", __func__);
 
 			/* Select VSB mode */
 			top_ctrl_cfg[1] = 0x03;
@@ -350,7 +350,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
 			break;
 
 		case QAM_64:
-			dprintk("%s: QAM_64 MODE\n", __FUNCTION__);
+			dprintk("%s: QAM_64 MODE\n", __func__);
 
 			/* Select QAM_64 mode */
 			top_ctrl_cfg[1] = 0x00;
@@ -366,7 +366,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
 			break;
 
 		case QAM_256:
-			dprintk("%s: QAM_256 MODE\n", __FUNCTION__);
+			dprintk("%s: QAM_256 MODE\n", __func__);
 
 			/* Select QAM_256 mode */
 			top_ctrl_cfg[1] = 0x01;
@@ -381,7 +381,7 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
 			}
 			break;
 		default:
-			printk(KERN_WARNING "lgdt330x: %s: Modulation type(%d) UNSUPPORTED\n", __FUNCTION__, param->u.vsb.modulation);
+			printk(KERN_WARNING "lgdt330x: %s: Modulation type(%d) UNSUPPORTED\n", __func__, param->u.vsb.modulation);
 			return -1;
 		}
 		/*
@@ -431,7 +431,7 @@ static int lgdt3302_read_status(struct dvb_frontend* fe, fe_status_t* status)
 
 	/* AGC status register */
 	i2c_read_demod_bytes(state, AGC_STATUS, buf, 1);
-	dprintk("%s: AGC_STATUS = 0x%02x\n", __FUNCTION__, buf[0]);
+	dprintk("%s: AGC_STATUS = 0x%02x\n", __func__, buf[0]);
 	if ((buf[0] & 0x0c) == 0x8){
 		/* Test signal does not exist flag */
 		/* as well as the AGC lock flag.   */
@@ -445,7 +445,7 @@ static int lgdt3302_read_status(struct dvb_frontend* fe, fe_status_t* status)
 	 */
 	/* signal status */
 	i2c_read_demod_bytes(state, TOP_CONTROL, buf, sizeof(buf));
-	dprintk("%s: TOP_CONTROL = 0x%02x, IRO_MASK = 0x%02x, IRQ_STATUS = 0x%02x\n", __FUNCTION__, buf[0], buf[1], buf[2]);
+	dprintk("%s: TOP_CONTROL = 0x%02x, IRO_MASK = 0x%02x, IRQ_STATUS = 0x%02x\n", __func__, buf[0], buf[1], buf[2]);
 
 
 	/* sync status */
@@ -461,7 +461,7 @@ static int lgdt3302_read_status(struct dvb_frontend* fe, fe_status_t* status)
 
 	/* Carrier Recovery Lock Status Register */
 	i2c_read_demod_bytes(state, CARRIER_LOCK, buf, 1);
-	dprintk("%s: CARRIER_LOCK = 0x%02x\n", __FUNCTION__, buf[0]);
+	dprintk("%s: CARRIER_LOCK = 0x%02x\n", __func__, buf[0]);
 	switch (state->current_modulation) {
 	case QAM_256:
 	case QAM_64:
@@ -474,7 +474,7 @@ static int lgdt3302_read_status(struct dvb_frontend* fe, fe_status_t* status)
 			*status |= FE_HAS_CARRIER;
 		break;
 	default:
-		printk(KERN_WARNING "lgdt330x: %s: Modulation set to unsupported value\n", __FUNCTION__);
+		printk(KERN_WARNING "lgdt330x: %s: Modulation set to unsupported value\n", __func__);
 	}
 
 	return 0;
@@ -493,7 +493,7 @@ static int lgdt3303_read_status(struct dvb_frontend* fe, fe_status_t* status)
 	if (err < 0)
 		return err;
 
-	dprintk("%s: AGC_STATUS = 0x%02x\n", __FUNCTION__, buf[0]);
+	dprintk("%s: AGC_STATUS = 0x%02x\n", __func__, buf[0]);
 	if ((buf[0] & 0x21) == 0x01){
 		/* Test input signal does not exist flag */
 		/* as well as the AGC lock flag.   */
@@ -502,7 +502,7 @@ static int lgdt3303_read_status(struct dvb_frontend* fe, fe_status_t* status)
 
 	/* Carrier Recovery Lock Status Register */
 	i2c_read_demod_bytes(state, CARRIER_LOCK, buf, 1);
-	dprintk("%s: CARRIER_LOCK = 0x%02x\n", __FUNCTION__, buf[0]);
+	dprintk("%s: CARRIER_LOCK = 0x%02x\n", __func__, buf[0]);
 	switch (state->current_modulation) {
 	case QAM_256:
 	case QAM_64:
@@ -533,7 +533,7 @@ static int lgdt3303_read_status(struct dvb_frontend* fe, fe_status_t* status)
 		}
 		break;
 	default:
-		printk(KERN_WARNING "lgdt330x: %s: Modulation set to unsupported value\n", __FUNCTION__);
+		printk(KERN_WARNING "lgdt330x: %s: Modulation set to unsupported value\n", __func__);
 	}
 	return 0;
 }
@@ -607,14 +607,14 @@ static int lgdt3302_read_snr(struct dvb_frontend* fe, u16* snr)
 		break;
 	default:
 		printk(KERN_ERR "lgdt330x: %s: Modulation set to unsupported value\n",
-		       __FUNCTION__);
+		       __func__);
 		return -EREMOTEIO; /* return -EDRIVER_IS_GIBBERED; */
 	}
 
 	state->snr = calculate_snr(noise, c);
 	*snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */
 
-	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __FUNCTION__, noise,
+	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __func__, noise,
 		state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
 
 	return 0;
@@ -651,14 +651,14 @@ static int lgdt3303_read_snr(struct dvb_frontend* fe, u16* snr)
 		break;
 	default:
 		printk(KERN_ERR "lgdt330x: %s: Modulation set to unsupported value\n",
-		       __FUNCTION__);
+		       __func__);
 		return -EREMOTEIO; /* return -EDRIVER_IS_GIBBERED; */
 	}
 
 	state->snr = calculate_snr(noise, c);
 	*snr = (state->snr) >> 16; /* Convert from 8.24 fixed-point to 8.8 */
 
-	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __FUNCTION__, noise,
+	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __func__, noise,
 		state->snr >> 24, (((state->snr >> 8) & 0xffff) * 100) >> 16);
 
 	return 0;
@@ -743,7 +743,7 @@ struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
 
 error:
 	kfree(state);
-	dprintk("%s: ERROR\n",__FUNCTION__);
+	dprintk("%s: ERROR\n",__func__);
 	return NULL;
 }
 
drivers/media/dvb/frontends/lgdt330x.h +1 -1
index 9950590..9012504 100644
@@ -59,7 +59,7 @@ extern struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config
 static inline struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
 					    struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_LGDT330X
drivers/media/dvb/frontends/lnbp21.h +1 -1
index 68906ac..8fe094b 100644
@@ -45,7 +45,7 @@ extern struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_ad
 #else
 static inline struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_set, u8 override_clear)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_LNBP21
drivers/media/dvb/frontends/mt2060.h +1 -1
index 0a86eab..acba005 100644
@@ -35,7 +35,7 @@ extern struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_a
 #else
 static inline struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060_config *cfg, u16 if1)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TUNER_MT2060
drivers/media/dvb/frontends/mt2131.c +7 -7
index 13cf166..e254bcf 100644
@@ -110,7 +110,7 @@ static int mt2131_set_params(struct dvb_frontend *fe,
 		priv->bandwidth = 0;
 
 	freq = params->frequency / 1000;  // Hz -> kHz
-	dprintk(1, "%s() freq=%d\n", __FUNCTION__, freq);
+	dprintk(1, "%s() freq=%d\n", __func__, freq);
 
 	f_lo1 = freq + MT2131_IF1 * 1000;
 	f_lo1 = (f_lo1 / 250) * 250;
@@ -187,7 +187,7 @@ static int mt2131_set_params(struct dvb_frontend *fe,
 static int mt2131_get_frequency(struct dvb_frontend *fe, u32 *frequency)
 {
 	struct mt2131_priv *priv = fe->tuner_priv;
-	dprintk(1, "%s()\n", __FUNCTION__);
+	dprintk(1, "%s()\n", __func__);
 	*frequency = priv->frequency;
 	return 0;
 }
@@ -195,7 +195,7 @@ static int mt2131_get_frequency(struct dvb_frontend *fe, u32 *frequency)
 static int mt2131_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
 {
 	struct mt2131_priv *priv = fe->tuner_priv;
-	dprintk(1, "%s()\n", __FUNCTION__);
+	dprintk(1, "%s()\n", __func__);
 	*bandwidth = priv->bandwidth;
 	return 0;
 }
@@ -214,7 +214,7 @@ static int mt2131_get_status(struct dvb_frontend *fe, u32 *status)
 
 	mt2131_readreg(priv, 0x09, &afc_status);
 	dprintk(1, "%s() - LO Status = 0x%x, AFC Status = 0x%x\n",
-		__FUNCTION__, lock_status, afc_status);
+		__func__, lock_status, afc_status);
 
 	return 0;
 }
@@ -223,7 +223,7 @@ static int mt2131_init(struct dvb_frontend *fe)
 {
 	struct mt2131_priv *priv = fe->tuner_priv;
 	int ret;
-	dprintk(1, "%s()\n", __FUNCTION__);
+	dprintk(1, "%s()\n", __func__);
 
 	if ((ret = mt2131_writeregs(priv, mt2131_config1,
 				    sizeof(mt2131_config1))) < 0)
@@ -243,7 +243,7 @@ static int mt2131_init(struct dvb_frontend *fe)
 
 static int mt2131_release(struct dvb_frontend *fe)
 {
-	dprintk(1, "%s()\n", __FUNCTION__);
+	dprintk(1, "%s()\n", __func__);
 	kfree(fe->tuner_priv);
 	fe->tuner_priv = NULL;
 	return 0;
@@ -273,7 +273,7 @@ struct dvb_frontend * mt2131_attach(struct dvb_frontend *fe,
 	struct mt2131_priv *priv = NULL;
 	u8 id = 0;
 
-	dprintk(1, "%s()\n", __FUNCTION__);
+	dprintk(1, "%s()\n", __func__);
 
 	priv = kzalloc(sizeof(struct mt2131_priv), GFP_KERNEL);
 	if (priv == NULL)
drivers/media/dvb/frontends/mt2131.h +1 -1
index 1e4ffe7..606d857 100644
@@ -41,7 +41,7 @@ static inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,
 						 struct mt2131_config *cfg,
 						 u16 if1)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif /* CONFIG_DVB_TUNER_MT2131 */
drivers/media/dvb/frontends/mt2266.h +1 -1
index f31dd61..c5113ef 100644
@@ -29,7 +29,7 @@ extern struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_a
 #else
 static inline struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TUNER_MT2266
drivers/media/dvb/frontends/mt312.c +3 -3
index 1638301..daca855 100644
@@ -76,7 +76,7 @@ static int mt312_read(struct mt312_state *state, const enum mt312_reg_addr reg,
 	ret = i2c_transfer(state->i2c, msg, 2);
 
 	if (ret != 2) {
-		printk(KERN_ERR "%s: ret == %d\n", __FUNCTION__, ret);
+		printk(KERN_ERR "%s: ret == %d\n", __func__, ret);
 		return -EREMOTEIO;
 	}
 
@@ -117,7 +117,7 @@ static int mt312_write(struct mt312_state *state, const enum mt312_reg_addr reg,
 	ret = i2c_transfer(state->i2c, &msg, 1);
 
 	if (ret != 1) {
-		dprintk("%s: ret == %d\n", __FUNCTION__, ret);
+		dprintk("%s: ret == %d\n", __func__, ret);
 		return -EREMOTEIO;
 	}
 
@@ -499,7 +499,7 @@ static int mt312_set_frontend(struct dvb_frontend *fe,
 	    { 0x00, 0x01, 0x02, 0x04, 0x3f, 0x08, 0x10, 0x20, 0x3f, 0x3f };
 	const u8 inv_tab[3] = { 0x00, 0x40, 0x80 };
 
-	dprintk("%s: Freq %d\n", __FUNCTION__, p->frequency);
+	dprintk("%s: Freq %d\n", __func__, p->frequency);
 
 	if ((p->frequency < fe->ops.info.frequency_min)
 	    || (p->frequency > fe->ops.info.frequency_max))
drivers/media/dvb/frontends/mt312.h +1 -1
index f17cb93..afe24fd 100644
@@ -40,7 +40,7 @@ struct dvb_frontend *vp310_mt312_attach(const struct mt312_config *config,
 static inline struct dvb_frontend *vp310_mt312_attach(
 	const struct mt312_config *config, struct i2c_adapter *i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif /* CONFIG_DVB_MT312 */
drivers/media/dvb/frontends/mt352.c +4 -4
index 7cd190b..beba5aa 100644
@@ -95,7 +95,7 @@ static int mt352_read_register(struct mt352_state* state, u8 reg)
 
 	if (ret != 2) {
 		printk("%s: readreg error (reg=%d, ret==%i)\n",
-		       __FUNCTION__, reg, ret);
+		       __func__, reg, ret);
 		return ret;
 	}
 
@@ -135,7 +135,7 @@ static void mt352_calc_nominal_rate(struct mt352_state* state,
 	value = 64 * bw * (1<<16) / (7 * 8);
 	value = value * 1000 / adc_clock;
 	dprintk("%s: bw %d, adc_clock %d => 0x%x\n",
-		__FUNCTION__, bw, adc_clock, value);
+		__func__, bw, adc_clock, value);
 	buf[0] = msb(value);
 	buf[1] = lsb(value);
 }
@@ -161,7 +161,7 @@ static void mt352_calc_input_freq(struct mt352_state* state,
 	}
 	value = -16374 * ife / adc_clock;
 	dprintk("%s: if2 %d, ife %d, adc_clock %d => %d / 0x%x\n",
-		__FUNCTION__, if2, ife, adc_clock, value, value & 0x3fff);
+		__func__, if2, ife, adc_clock, value, value & 0x3fff);
 	buf[0] = msb(value);
 	buf[1] = lsb(value);
 }
@@ -521,7 +521,7 @@ static int mt352_init(struct dvb_frontend* fe)
 
 	static u8 mt352_reset_attach [] = { RESET, 0xC0 };
 
-	dprintk("%s: hello\n",__FUNCTION__);
+	dprintk("%s: hello\n",__func__);
 
 	if ((mt352_read_register(state, CLOCK_CTL) & 0x10) == 0 ||
 	    (mt352_read_register(state, CONFIG) & 0x20) == 0) {
drivers/media/dvb/frontends/mt352.h +1 -1
index e996408..595092f 100644
@@ -58,7 +58,7 @@ extern struct dvb_frontend* mt352_attach(const struct mt352_config* config,
 static inline struct dvb_frontend* mt352_attach(const struct mt352_config* config,
 					 struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_MT352
drivers/media/dvb/frontends/nxt200x.c +13 -13
index fcf964f..23d0228 100644
@@ -74,7 +74,7 @@ static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
 		printk (KERN_WARNING "nxt200x: %s: i2c write error (addr 0x%02x, err == %i)\n",
-			__FUNCTION__, addr, err);
+			__func__, addr, err);
 		return -EREMOTEIO;
 	}
 	return 0;
@@ -87,7 +87,7 @@ static u8 i2c_readbytes (struct nxt200x_state* state, u8 addr, u8* buf, u8 len)
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
 		printk (KERN_WARNING "nxt200x: %s: i2c read error (addr 0x%02x, err == %i)\n",
-			__FUNCTION__, addr, err);
+			__func__, addr, err);
 		return -EREMOTEIO;
 	}
 	return 0;
@@ -104,7 +104,7 @@ static int nxt200x_writebytes (struct nxt200x_state* state, u8 reg, u8 *buf, u8
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
 		printk (KERN_WARNING "nxt200x: %s: i2c write error (addr 0x%02x, err == %i)\n",
-			__FUNCTION__, state->config->demod_address, err);
+			__func__, state->config->demod_address, err);
 		return -EREMOTEIO;
 	}
 	return 0;
@@ -121,7 +121,7 @@ static u8 nxt200x_readbytes (struct nxt200x_state* state, u8 reg, u8* buf, u8 le
 
 	if ((err = i2c_transfer (state->i2c, msg, 2)) != 2) {
 		printk (KERN_WARNING "nxt200x: %s: i2c read error (addr 0x%02x, err == %i)\n",
-			__FUNCTION__, state->config->demod_address, err);
+			__func__, state->config->demod_address, err);
 		return -EREMOTEIO;
 	}
 	return 0;
@@ -146,7 +146,7 @@ static u16 nxt200x_crc(u16 crc, u8 c)
 static int nxt200x_writereg_multibyte (struct nxt200x_state* state, u8 reg, u8* data, u8 len)
 {
 	u8 attr, len2, buf;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* set mutli register register */
 	nxt200x_writebytes(state, 0x35, &reg, 1);
@@ -207,7 +207,7 @@ static int nxt200x_readreg_multibyte (struct nxt200x_state* state, u8 reg, u8* d
 {
 	int i;
 	u8 buf, len2, attr;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* set mutli register register */
 	nxt200x_writebytes(state, 0x35, &reg, 1);
@@ -254,7 +254,7 @@ static int nxt200x_readreg_multibyte (struct nxt200x_state* state, u8 reg, u8* d
 static void nxt200x_microcontroller_stop (struct nxt200x_state* state)
 {
 	u8 buf, stopval, counter = 0;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* set correct stop value */
 	switch (state->demod_chip) {
@@ -287,7 +287,7 @@ static void nxt200x_microcontroller_stop (struct nxt200x_state* state)
 static void nxt200x_microcontroller_start (struct nxt200x_state* state)
 {
 	u8 buf;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	buf = 0x00;
 	nxt200x_writebytes(state, 0x22, &buf, 1);
@@ -297,7 +297,7 @@ static void nxt2004_microcontroller_init (struct nxt200x_state* state)
 {
 	u8 buf[9];
 	u8 counter = 0;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	buf[0] = 0x00;
 	nxt200x_writebytes(state, 0x2b, buf, 1);
@@ -328,7 +328,7 @@ static int nxt200x_writetuner (struct nxt200x_state* state, u8* data)
 {
 	u8 buf, count = 0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	dprintk("Tuner Bytes: %02X %02X %02X %02X\n", data[1], data[2], data[3], data[4]);
 
@@ -387,7 +387,7 @@ static int nxt200x_writetuner (struct nxt200x_state* state, u8* data)
 static void nxt200x_agc_reset(struct nxt200x_state* state)
 {
 	u8 buf;
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	switch (state->demod_chip) {
 		case NXT2002:
@@ -416,7 +416,7 @@ static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware
 	u8 buf[3], written = 0, chunkpos = 0;
 	u16 rambase, position, crc = 0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	dprintk("Firmware is %zu bytes\n", fw->size);
 
 	/* Get the RAM base for this nxt2002 */
@@ -483,7 +483,7 @@ static int nxt2004_load_firmware (struct dvb_frontend* fe, const struct firmware
 	u8 buf[3];
 	u16 rambase, position, crc=0;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	dprintk("Firmware is %zu bytes\n", fw->size);
 
 	/* set rambase */
drivers/media/dvb/frontends/nxt200x.h +1 -1
index bb0ef58..f3c8458 100644
@@ -49,7 +49,7 @@ extern struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
 static inline struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_NXT200X
drivers/media/dvb/frontends/nxt6000.h +1 -1
index 13d2251..878eb38 100644
@@ -40,7 +40,7 @@ extern struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
 static inline struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_NXT6000
drivers/media/dvb/frontends/or51132.c +3 -3
index 1d2d28c..8a64cb4 100644
@@ -419,7 +419,7 @@ static int or51132_read_status(struct dvb_frontend* fe, fe_status_t* status)
 		*status = 0;
 		return -EREMOTEIO;
 	}
-	dprintk("%s: read_status %04x\n", __FUNCTION__, reg);
+	dprintk("%s: read_status %04x\n", __func__, reg);
 
 	if (reg & 0x0100) /* Receiver Lock */
 		*status = FE_HAS_SIGNAL|FE_HAS_CARRIER|FE_HAS_VITERBI|
@@ -504,14 +504,14 @@ start:
 		if (retry--) goto start;
 		return -EREMOTEIO;
 	}
-	dprintk("%s: modulation %02x, NTSC rej O%s\n", __FUNCTION__,
+	dprintk("%s: modulation %02x, NTSC rej O%s\n", __func__,
 		reg&0xff, reg&0x1000?"n":"ff");
 
 	/* Calculate SNR using noise, c, and NTSC rejection correction */
 	state->snr = calculate_snr(noise, c) - usK;
 	*snr = (state->snr) >> 16;
 
-	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __FUNCTION__, noise,
+	dprintk("%s: noise = 0x%08x, snr = %d.%02d dB\n", __func__, noise,
 		state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
 
 	return 0;
drivers/media/dvb/frontends/or51132.h +1 -1
index add24f0..1b8e04d 100644
@@ -41,7 +41,7 @@ extern struct dvb_frontend* or51132_attach(const struct or51132_config* config,
 static inline struct dvb_frontend* or51132_attach(const struct or51132_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_OR51132
drivers/media/dvb/frontends/or51211.c +3 -3
index 6a6b0d7..7eaa476 100644
@@ -307,19 +307,19 @@ static int or51211_read_snr(struct dvb_frontend* fe, u16* snr)
 
 	if (i2c_writebytes(state,state->config->demod_address,snd_buf,3)) {
 		printk(KERN_WARNING "%s: error writing snr reg\n",
-		       __FUNCTION__);
+		       __func__);
 		return -1;
 	}
 	if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) {
 		printk(KERN_WARNING "%s: read_status read error\n",
-		       __FUNCTION__);
+		       __func__);
 		return -1;
 	}
 
 	state->snr = calculate_snr(rec_buf[0], 89599047);
 	*snr = (state->snr) >> 16;
 
-	dprintk("%s: noise = 0x%02x, snr = %d.%02d dB\n", __FUNCTION__, rec_buf[0],
+	dprintk("%s: noise = 0x%02x, snr = %d.%02d dB\n", __func__, rec_buf[0],
 		state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
 
 	return 0;
drivers/media/dvb/frontends/or51211.h +1 -1
index 8aad840..3ce0508 100644
@@ -44,7 +44,7 @@ extern struct dvb_frontend* or51211_attach(const struct or51211_config* config,
 static inline struct dvb_frontend* or51211_attach(const struct or51211_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_OR51211
drivers/media/dvb/frontends/qt1010.h +1 -1
index 3ab4aa0..cff6a7c 100644
@@ -45,7 +45,7 @@ static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
 						 struct i2c_adapter *i2c,
 						 struct qt1010_config *cfg)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TUNER_QT1010
drivers/media/dvb/frontends/s5h1409.c +24 -24

189 lines not on this page · raw message

drivers/media/dvb/frontends/s5h1409.h +1 -1
index f0bb13f..59f4335 100644
@@ -67,7 +67,7 @@ extern struct dvb_frontend* s5h1409_attach(const struct s5h1409_config* config,
 static inline struct dvb_frontend* s5h1409_attach(const struct s5h1409_config* config,
 						  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif /* CONFIG_DVB_S5H1409 */
drivers/media/dvb/frontends/s5h1420.c +1 -1
index 2c2c344..2f3d61b 100644
@@ -63,7 +63,7 @@ static int s5h1420_writereg (struct s5h1420_state* state, u8 reg, u8 data)
 	int err;
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
-		dprintk ("%s: writereg error (err == %i, reg == 0x%02x, data == 0x%02x)\n", __FUNCTION__, err, reg, data);
+		dprintk ("%s: writereg error (err == %i, reg == 0x%02x, data == 0x%02x)\n", __func__, err, reg, data);
 		return -EREMOTEIO;
 	}
 
drivers/media/dvb/frontends/s5h1420.h +1 -1
index 1555870..2cc7850 100644
@@ -41,7 +41,7 @@ extern struct dvb_frontend* s5h1420_attach(const struct s5h1420_config* config,
 static inline struct dvb_frontend* s5h1420_attach(const struct s5h1420_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_S5H1420
drivers/media/dvb/frontends/sp8870.c +13 -13
index da876f7..4c379c4 100644
@@ -70,7 +70,7 @@ static int sp8870_writereg (struct sp8870_state* state, u16 reg, u16 data)
 	int err;
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
-		dprintk ("%s: writereg error (err == %i, reg == 0x%02x, data == 0x%02x)\n", __FUNCTION__, err, reg, data);
+		dprintk ("%s: writereg error (err == %i, reg == 0x%02x, data == 0x%02x)\n", __func__, err, reg, data);
 		return -EREMOTEIO;
 	}
 
@@ -88,7 +88,7 @@ static int sp8870_readreg (struct sp8870_state* state, u16 reg)
 	ret = i2c_transfer (state->i2c, msg, 2);
 
 	if (ret != 2) {
-		dprintk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret);
+		dprintk("%s: readreg error (ret == %i)\n", __func__, ret);
 		return -1;
 	}
 
@@ -104,7 +104,7 @@ static int sp8870_firmware_upload (struct sp8870_state* state, const struct firm
 	int tx_len;
 	int err = 0;
 
-	dprintk ("%s: ...\n", __FUNCTION__);
+	dprintk ("%s: ...\n", __func__);
 
 	if (fw->size < SP8870_FIRMWARE_SIZE + SP8870_FIRMWARE_OFFSET)
 		return -EINVAL;
@@ -131,14 +131,14 @@ static int sp8870_firmware_upload (struct sp8870_state* state, const struct firm
 		msg.buf = tx_buf;
 		msg.len = tx_len + 2;
 		if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
-			printk("%s: firmware upload failed!\n", __FUNCTION__);
-			printk ("%s: i2c error (err == %i)\n", __FUNCTION__, err);
+			printk("%s: firmware upload failed!\n", __func__);
+			printk ("%s: i2c error (err == %i)\n", __func__, err);
 			return err;
 		}
 		fw_pos += tx_len;
 	}
 
-	dprintk ("%s: done!\n", __FUNCTION__);
+	dprintk ("%s: done!\n", __func__);
 	return 0;
 };
 
@@ -310,7 +310,7 @@ static int sp8870_init (struct dvb_frontend* fe)
 	if (state->initialised) return 0;
 	state->initialised = 1;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 
 	/* request the firmware, this will block until someone uploads it */
@@ -475,7 +475,7 @@ static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_par
 	int trials = 0;
 	int check_count = 0;
 
-	dprintk("%s: frequency = %i\n", __FUNCTION__, p->frequency);
+	dprintk("%s: frequency = %i\n", __func__, p->frequency);
 
 	for (trials = 1; trials <= MAXTRIALS; trials++) {
 
@@ -487,7 +487,7 @@ static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_par
 			valid = sp8870_read_data_valid_signal(state);
 			if (valid) {
 				dprintk("%s: delay = %i usec\n",
-					__FUNCTION__, check_count * 10);
+					__func__, check_count * 10);
 				break;
 			}
 			udelay(10);
@@ -497,20 +497,20 @@ static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_par
 	}
 
 	if (!valid) {
-		printk("%s: firmware crash!!!!!!\n", __FUNCTION__);
+		printk("%s: firmware crash!!!!!!\n", __func__);
 		return -EIO;
 	}
 
 	if (debug) {
 		if (valid) {
 			if (trials > 1) {
-				printk("%s: firmware lockup!!!\n", __FUNCTION__);
-				printk("%s: recovered after %i trial(s))\n",  __FUNCTION__, trials - 1);
+				printk("%s: firmware lockup!!!\n", __func__);
+				printk("%s: recovered after %i trial(s))\n",  __func__, trials - 1);
 				lockups++;
 			}
 		}
 		switches++;
-		printk("%s: switches = %i lockups = %i\n", __FUNCTION__, switches, lockups);
+		printk("%s: switches = %i lockups = %i\n", __func__, switches, lockups);
 	}
 
 	return 0;
drivers/media/dvb/frontends/sp8870.h +1 -1
index 909cefe..a764a79 100644
@@ -42,7 +42,7 @@ extern struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
 static inline struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
 					  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_SP8870
drivers/media/dvb/frontends/sp887x.c +9 -9
index 1aa2539..49f5587 100644
@@ -43,7 +43,7 @@ static int i2c_writebytes (struct sp887x_state* state, u8 *buf, u8 len)
 
 	if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) {
 		printk ("%s: i2c write error (addr %02x, err == %i)\n",
-			__FUNCTION__, state->config->demod_address, err);
+			__func__, state->config->demod_address, err);
 		return -EREMOTEIO;
 	}
 
@@ -65,7 +65,7 @@ static int sp887x_writereg (struct sp887x_state* state, u16 reg, u16 data)
 		{
 			printk("%s: writereg error "
 			       "(reg %03x, data %03x, ret == %i)\n",
-			       __FUNCTION__, reg & 0xffff, data & 0xffff, ret);
+			       __func__, reg & 0xffff, data & 0xffff, ret);
 			return ret;
 		}
 	}
@@ -82,7 +82,7 @@ static int sp887x_readreg (struct sp887x_state* state, u16 reg)
 			 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 2 }};
 
 	if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) {
-		printk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret);
+		printk("%s: readreg error (ret == %i)\n", __func__, ret);
 		return -1;
 	}
 
@@ -91,7 +91,7 @@ static int sp887x_readreg (struct sp887x_state* state, u16 reg)
 
 static void sp887x_microcontroller_stop (struct sp887x_state* state)
 {
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	sp887x_writereg(state, 0xf08, 0x000);
 	sp887x_writereg(state, 0xf09, 0x000);
 
@@ -101,7 +101,7 @@ static void sp887x_microcontroller_stop (struct sp887x_state* state)
 
 static void sp887x_microcontroller_start (struct sp887x_state* state)
 {
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	sp887x_writereg(state, 0xf08, 0x000);
 	sp887x_writereg(state, 0xf09, 0x000);
 
@@ -112,7 +112,7 @@ static void sp887x_microcontroller_start (struct sp887x_state* state)
 static void sp887x_setup_agc (struct sp887x_state* state)
 {
 	/* setup AGC parameters */
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 	sp887x_writereg(state, 0x33c, 0x054);
 	sp887x_writereg(state, 0x33b, 0x04c);
 	sp887x_writereg(state, 0x328, 0x000);
@@ -142,7 +142,7 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmware
 	int fw_size = fw->size;
 	unsigned char *mem = fw->data;
 
-	dprintk("%s\n", __FUNCTION__);
+	dprintk("%s\n", __func__);
 
 	/* ignore the first 10 bytes, then we expect 0x4000 bytes of firmware */
 	if (fw_size < FW_SIZE+10)
@@ -155,7 +155,7 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmware
 
 	sp887x_microcontroller_stop (state);
 
-	printk ("%s: firmware upload... ", __FUNCTION__);
+	printk ("%s: firmware upload... ", __func__);
 
 	/* setup write pointer to -1 (end of memory) */
 	/* bit 0x8000 in address is set to enable 13bit mode */
@@ -181,7 +181,7 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmware
 
 		if ((err = i2c_writebytes (state, buf, c+2)) < 0) {
 			printk ("failed.\n");
-			printk ("%s: i2c error (err == %i)\n", __FUNCTION__, err);
+			printk ("%s: i2c error (err == %i)\n", __func__, err);
 			return err;
 		}
 	}
drivers/media/dvb/frontends/sp887x.h +1 -1
index 7ee78d7..04eff6e 100644
@@ -24,7 +24,7 @@ extern struct dvb_frontend* sp887x_attach(const struct sp887x_config* config,
 static inline struct dvb_frontend* sp887x_attach(const struct sp887x_config* config,
 					  struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_SP887X
drivers/media/dvb/frontends/stv0297.c +7 -7
index 7c23775..62caf80 100644
@@ -58,7 +58,7 @@ static int stv0297_writereg(struct stv0297_state *state, u8 reg, u8 data)
 
 	if (ret != 1)
 		dprintk("%s: writereg error (reg == 0x%02x, val == 0x%02x, "
-			"ret == %i)\n", __FUNCTION__, reg, data, ret);
+			"ret == %i)\n", __func__, reg, data, ret);
 
 	return (ret != 1) ? -1 : 0;
 }
@@ -75,16 +75,16 @@ static int stv0297_readreg(struct stv0297_state *state, u8 reg)
 	// this device needs a STOP between the register and data
 	if (state->config->stop_during_read) {
 		if ((ret = i2c_transfer(state->i2c, &msg[0], 1)) != 1) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg, ret);
 			return -1;
 		}
 		if ((ret = i2c_transfer(state->i2c, &msg[1], 1)) != 1) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg, ret);
 			return -1;
 		}
 	} else {
 		if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg, ret);
 			return -1;
 		}
 	}
@@ -115,16 +115,16 @@ static int stv0297_readregs(struct stv0297_state *state, u8 reg1, u8 * b, u8 len
 	// this device needs a STOP between the register and data
 	if (state->config->stop_during_read) {
 		if ((ret = i2c_transfer(state->i2c, &msg[0], 1)) != 1) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg1, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg1, ret);
 			return -1;
 		}
 		if ((ret = i2c_transfer(state->i2c, &msg[1], 1)) != 1) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg1, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg1, ret);
 			return -1;
 		}
 	} else {
 		if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) {
-			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __FUNCTION__, reg1, ret);
+			dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n", __func__, reg1, ret);
 			return -1;
 		}
 	}
drivers/media/dvb/frontends/stv0297.h +1 -1
index 69f4515..3f8f946 100644
@@ -49,7 +49,7 @@ extern struct dvb_frontend* stv0297_attach(const struct stv0297_config* config,
 static inline struct dvb_frontend* stv0297_attach(const struct stv0297_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_STV0297
drivers/media/dvb/frontends/stv0299.c +20 -20
index 035dd7b..f7c3674 100644
@@ -86,7 +86,7 @@ static int stv0299_writeregI (struct stv0299_state* state, u8 reg, u8 data)
 
 	if (ret != 1)
 		dprintk("%s: writereg error (reg == 0x%02x, val == 0x%02x, "
-			"ret == %i)\n", __FUNCTION__, reg, data, ret);
+			"ret == %i)\n", __func__, reg, data, ret);
 
 	return (ret != 1) ? -EREMOTEIO : 0;
 }
@@ -113,7 +113,7 @@ static u8 stv0299_readreg (struct stv0299_state* state, u8 reg)
 
 	if (ret != 2)
 		dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n",
-				__FUNCTION__, reg, ret);
+				__func__, reg, ret);
 
 	return b1[0];
 }
@@ -127,14 +127,14 @@ static int stv0299_readregs (struct stv0299_state* state, u8 reg1, u8 *b, u8 len
 	ret = i2c_transfer (state->i2c, msg, 2);
 
 	if (ret != 2)
-		dprintk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret);
+		dprintk("%s: readreg error (ret == %i)\n", __func__, ret);
 
 	return ret == 2 ? 0 : ret;
 }
 
 static int stv0299_set_FEC (struct stv0299_state* state, fe_code_rate_t fec)
 {
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	switch (fec) {
 	case FEC_AUTO:
@@ -174,7 +174,7 @@ static fe_code_rate_t stv0299_get_fec (struct stv0299_state* state)
 					     FEC_7_8, FEC_1_2 };
 	u8 index;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	index = stv0299_readreg (state, 0x1b);
 	index &= 0x7;
@@ -189,11 +189,11 @@ static int stv0299_wait_diseqc_fifo (struct stv0299_state* state, int timeout)
 {
 	unsigned long start = jiffies;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	while (stv0299_readreg(state, 0x0a) & 1) {
 		if (jiffies - start > timeout) {
-			dprintk ("%s: timeout!!\n", __FUNCTION__);
+			dprintk ("%s: timeout!!\n", __func__);
 			return -ETIMEDOUT;
 		}
 		msleep(10);
@@ -206,11 +206,11 @@ static int stv0299_wait_diseqc_idle (struct stv0299_state* state, int timeout)
 {
 	unsigned long start = jiffies;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	while ((stv0299_readreg(state, 0x0a) & 3) != 2 ) {
 		if (jiffies - start > timeout) {
-			dprintk ("%s: timeout!!\n", __FUNCTION__);
+			dprintk ("%s: timeout!!\n", __func__);
 			return -ETIMEDOUT;
 		}
 		msleep(10);
@@ -245,7 +245,7 @@ static int stv0299_get_symbolrate (struct stv0299_state* state)
 	u8 sfr[3];
 	s8 rtf;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	stv0299_readregs (state, 0x1f, sfr, 3);
 	stv0299_readregs (state, 0x1a, (u8 *)&rtf, 1);
@@ -257,8 +257,8 @@ static int stv0299_get_symbolrate (struct stv0299_state* state)
 	offset = (s32) rtf * (srate / 4096L);
 	offset /= 128;
 
-	dprintk ("%s : srate = %i\n", __FUNCTION__, srate);
-	dprintk ("%s : ofset = %i\n", __FUNCTION__, offset);
+	dprintk ("%s : srate = %i\n", __func__, srate);
+	dprintk ("%s : ofset = %i\n", __func__, offset);
 
 	srate += offset;
 
@@ -276,7 +276,7 @@ static int stv0299_send_diseqc_msg (struct dvb_frontend* fe,
 	u8 val;
 	int i;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (stv0299_wait_diseqc_idle (state, 100) < 0)
 		return -ETIMEDOUT;
@@ -305,7 +305,7 @@ static int stv0299_send_diseqc_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t
 	struct stv0299_state* state = fe->demodulator_priv;
 	u8 val;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (stv0299_wait_diseqc_idle (state, 100) < 0)
 		return -ETIMEDOUT;
@@ -355,7 +355,7 @@ static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltag
 	u8 reg0x08;
 	u8 reg0x0c;
 
-	dprintk("%s: %s\n", __FUNCTION__,
+	dprintk("%s: %s\n", __func__,
 		voltage == SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" :
 		voltage == SEC_VOLTAGE_18 ? "SEC_VOLTAGE_18" : "??");
 
@@ -408,7 +408,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long
 
 	cmd = cmd << 1;
 	if (debug_legacy_dish_switch)
-		printk ("%s switch command: 0x%04lx\n",__FUNCTION__, cmd);
+		printk ("%s switch command: 0x%04lx\n",__func__, cmd);
 
 	do_gettimeofday (&nexttime);
 	if (debug_legacy_dish_switch)
@@ -433,7 +433,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long
 	}
 	if (debug_legacy_dish_switch) {
 		printk ("%s(%d): switch delay (should be 32k followed by all 8k\n",
-			__FUNCTION__, fe->dvb->num);
+			__func__, fe->dvb->num);
 		for (i = 1; i < 10; i++)
 			printk ("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i]));
 	}
@@ -461,7 +461,7 @@ static int stv0299_read_status(struct dvb_frontend* fe, fe_status_t* status)
 	u8 signal = 0xff - stv0299_readreg (state, 0x18);
 	u8 sync = stv0299_readreg (state, 0x1b);
 
-	dprintk ("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __FUNCTION__, sync);
+	dprintk ("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync);
 	*status = 0;
 
 	if (signal > 10)
@@ -499,7 +499,7 @@ static int stv0299_read_signal_strength(struct dvb_frontend* fe, u16* strength)
 	s32 signal =  0xffff - ((stv0299_readreg (state, 0x18) << 8)
 			       | stv0299_readreg (state, 0x19));
 
-	dprintk ("%s : FE_READ_SIGNAL_STRENGTH : AGC2I: 0x%02x%02x, signal=0x%04x\n", __FUNCTION__,
+	dprintk ("%s : FE_READ_SIGNAL_STRENGTH : AGC2I: 0x%02x%02x, signal=0x%04x\n", __func__,
 		 stv0299_readreg (state, 0x18),
 		 stv0299_readreg (state, 0x19), (int) signal);
 
@@ -536,7 +536,7 @@ static int stv0299_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
 	struct stv0299_state* state = fe->demodulator_priv;
 	int invval = 0;
 
-	dprintk ("%s : FE_SET_FRONTEND\n", __FUNCTION__);
+	dprintk ("%s : FE_SET_FRONTEND\n", __func__);
 
 	// set the inversion
 	if (p->inversion == INVERSION_OFF) invval = 0;
drivers/media/dvb/frontends/stv0299.h +1 -1
index 33df949..84eaeb5 100644
@@ -96,7 +96,7 @@ extern struct dvb_frontend* stv0299_attach(const struct stv0299_config* config,
 static inline struct dvb_frontend* stv0299_attach(const struct stv0299_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_STV0299
drivers/media/dvb/frontends/tda10021.c +2 -2
index 45137d2..f648fdb 100644
@@ -79,7 +79,7 @@ static int _tda10021_writereg (struct tda10021_state* state, u8 reg, u8 data)
 	if (ret != 1)
 		printk("DVB: TDA10021(%d): %s, writereg error "
 			"(reg == 0x%02x, val == 0x%02x, ret == %i)\n",
-			state->frontend.dvb->num, __FUNCTION__, reg, data, ret);
+			state->frontend.dvb->num, __func__, reg, data, ret);
 
 	msleep(10);
 	return (ret != 1) ? -EREMOTEIO : 0;
@@ -97,7 +97,7 @@ static u8 tda10021_readreg (struct tda10021_state* state, u8 reg)
 	// Don't print an error message if the id is read.
 	if (ret != 2 && reg != 0x1a)
 		printk("DVB: TDA10021: %s: readreg error (ret == %i)\n",
-				__FUNCTION__, ret);
+				__func__, ret);
 	return b1[0];
 }
 
drivers/media/dvb/frontends/tda10023.c +2 -2
index 364bc01..0727b80 100644
@@ -118,7 +118,7 @@ static u8 tda10023_readreg (struct tda10023_state* state, u8 reg)
 	ret = i2c_transfer (state->i2c, msg, 2);
 	if (ret != 2)
 		printk("DVB: TDA10023: %s: readreg error (ret == %i)\n",
-				 __FUNCTION__, ret);
+				 __func__, ret);
 	return b1[0];
 }
 
@@ -132,7 +132,7 @@ static int tda10023_writereg (struct tda10023_state* state, u8 reg, u8 data)
 	if (ret != 1)
 		printk("DVB: TDA10023(%d): %s, writereg error "
 			"(reg == 0x%02x, val == 0x%02x, ret == %i)\n",
-			state->frontend.dvb->num, __FUNCTION__, reg, data, ret);
+			state->frontend.dvb->num, __func__, reg, data, ret);
 
 	return (ret != 1) ? -EREMOTEIO : 0;
 }
drivers/media/dvb/frontends/tda1002x.h +2 -2
index e9094d8..1bcc0d4 100644
@@ -40,7 +40,7 @@ extern struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config
 static inline struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config,
 					    struct i2c_adapter* i2c, u8 pwm)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TDA10021
@@ -52,7 +52,7 @@ extern struct dvb_frontend* tda10023_attach(const struct tda1002x_config* config
 static inline struct dvb_frontend* tda10023_attach(const struct tda1002x_config* config,
 					    struct i2c_adapter* i2c, u8 pwm)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TDA10023
drivers/media/dvb/frontends/tda1004x.c +28 -28

213 lines not on this page · raw message

drivers/media/dvb/frontends/tda1004x.h +2 -2
index abae843..3c2b069 100644
@@ -128,13 +128,13 @@ extern struct dvb_frontend* tda10046_attach(const struct tda1004x_config* config
 static inline struct dvb_frontend* tda10045_attach(const struct tda1004x_config* config,
 					    struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 static inline struct dvb_frontend* tda10046_attach(const struct tda1004x_config* config,
 					    struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TDA1004X
drivers/media/dvb/frontends/tda10086.c +20 -20
index 0d2b69a..ccd3da9 100644
@@ -60,7 +60,7 @@ static int tda10086_write_byte(struct tda10086_state *state, int reg, int data)
 
 	if (ret != 1)
 		dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n",
-			__FUNCTION__, reg, data, ret);
+			__func__, reg, data, ret);
 
 	return (ret != 1) ? ret : 0;
 }
@@ -78,7 +78,7 @@ static int tda10086_read_byte(struct tda10086_state *state, int reg)
 	ret = i2c_transfer(state->i2c, msg, 2);
 
 	if (ret != 2) {
-		dprintk("%s: error reg=0x%x, ret=%i\n", __FUNCTION__, reg,
+		dprintk("%s: error reg=0x%x, ret=%i\n", __func__, reg,
 			ret);
 		return ret;
 	}
@@ -108,7 +108,7 @@ static int tda10086_init(struct dvb_frontend* fe)
 	struct tda10086_state* state = fe->demodulator_priv;
 	u8 t22k_off = 0x80;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (state->config->diseqc_tone)
 		t22k_off = 0;
@@ -173,7 +173,7 @@ static void tda10086_diseqc_wait(struct tda10086_state *state)
 	unsigned long timeout = jiffies + msecs_to_jiffies(200);
 	while (!(tda10086_read_byte(state, 0x50) & 0x01)) {
 		if(time_after(jiffies, timeout)) {
-			printk("%s: diseqc queue not ready, command may be lost.\n", __FUNCTION__);
+			printk("%s: diseqc queue not ready, command may be lost.\n", __func__);
 			break;
 		}
 		msleep(10);
@@ -185,7 +185,7 @@ static int tda10086_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
 	struct tda10086_state* state = fe->demodulator_priv;
 	u8 t22k_off = 0x80;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (state->config->diseqc_tone)
 		t22k_off = 0;
@@ -211,7 +211,7 @@ static int tda10086_send_master_cmd (struct dvb_frontend* fe,
 	u8 oldval;
 	u8 t22k_off = 0x80;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (state->config->diseqc_tone)
 		t22k_off = 0;
@@ -239,7 +239,7 @@ static int tda10086_send_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t minic
 	u8 oldval = tda10086_read_byte(state, 0x36);
 	u8 t22k_off = 0x80;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (state->config->diseqc_tone)
 		t22k_off = 0;
@@ -266,7 +266,7 @@ static int tda10086_set_inversion(struct tda10086_state *state,
 {
 	u8 invval = 0x80;
 
-	dprintk ("%s %i %i\n", __FUNCTION__, fe_params->inversion, state->config->invert);
+	dprintk ("%s %i %i\n", __func__, fe_params->inversion, state->config->invert);
 
 	switch(fe_params->inversion) {
 	case INVERSION_OFF:
@@ -300,7 +300,7 @@ static int tda10086_set_symbol_rate(struct tda10086_state *state,
 	u32 bdri;
 	u32 symbol_rate = fe_params->u.qpsk.symbol_rate;
 
-	dprintk ("%s %i\n", __FUNCTION__, symbol_rate);
+	dprintk ("%s %i\n", __func__, symbol_rate);
 
 	// setup the decimation and anti-aliasing filters..
 	if (symbol_rate < (u32) (SACLK * 0.0137)) {
@@ -366,7 +366,7 @@ static int tda10086_set_fec(struct tda10086_state *state,
 {
 	u8 fecval;
 
-	dprintk ("%s %i\n", __FUNCTION__, fe_params->u.qpsk.fec_inner);
+	dprintk ("%s %i\n", __func__, fe_params->u.qpsk.fec_inner);
 
 	switch(fe_params->u.qpsk.fec_inner) {
 	case FEC_1_2:
@@ -412,7 +412,7 @@ static int tda10086_set_frontend(struct dvb_frontend* fe,
 	u32 freq = 0;
 	int freqoff;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	// modify parameters for tuning
 	tda10086_write_byte(state, 0x02, 0x35);
@@ -459,7 +459,7 @@ static int tda10086_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_pa
 	int tmp;
 	u64 tmp64;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	// check for invalid symbol rate
 	if (fe_params->u.qpsk.symbol_rate < 500000)
@@ -550,7 +550,7 @@ static int tda10086_read_status(struct dvb_frontend* fe, fe_status_t *fe_status)
 	struct tda10086_state* state = fe->demodulator_priv;
 	u8 val;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	val = tda10086_read_byte(state, 0x0e);
 	*fe_status = 0;
@@ -579,7 +579,7 @@ static int tda10086_read_signal_strength(struct dvb_frontend* fe, u16 * signal)
 	struct tda10086_state* state = fe->demodulator_priv;
 	u8 _str;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	_str = 0xff - tda10086_read_byte(state, 0x43);
 	*signal = (_str << 8) | _str;
@@ -592,7 +592,7 @@ static int tda10086_read_snr(struct dvb_frontend* fe, u16 * snr)
 	struct tda10086_state* state = fe->demodulator_priv;
 	u8 _snr;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	_snr = 0xff - tda10086_read_byte(state, 0x1c);
 	*snr = (_snr << 8) | _snr;
@@ -604,7 +604,7 @@ static int tda10086_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
 {
 	struct tda10086_state* state = fe->demodulator_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	// read it
 	*ucblocks = tda10086_read_byte(state, 0x18) & 0x7f;
@@ -620,7 +620,7 @@ static int tda10086_read_ber(struct dvb_frontend* fe, u32* ber)
 {
 	struct tda10086_state* state = fe->demodulator_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	// read it
 	*ber = 0;
@@ -635,7 +635,7 @@ static int tda10086_sleep(struct dvb_frontend* fe)
 {
 	struct tda10086_state* state = fe->demodulator_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	tda10086_write_mask(state, 0x00, 0x08, 0x08);
 
@@ -646,7 +646,7 @@ static int tda10086_i2c_gate_ctrl(struct dvb_frontend* fe, int enable)
 {
 	struct tda10086_state* state = fe->demodulator_priv;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	if (enable) {
 		tda10086_write_mask(state, 0x00, 0x10, 0x10);
@@ -737,7 +737,7 @@ struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
 {
 	struct tda10086_state *state;
 
-	dprintk ("%s\n", __FUNCTION__);
+	dprintk ("%s\n", __func__);
 
 	/* allocate memory for the internal state */
 	state = kmalloc(sizeof(struct tda10086_state), GFP_KERNEL);
drivers/media/dvb/frontends/tda10086.h +1 -1
index eeceaee..197c237 100644
@@ -45,7 +45,7 @@ extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config
 static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
 						   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TDA10086
drivers/media/dvb/frontends/tda18271-priv.h +1 -1
index 7b939a5..758a559 100644
@@ -133,7 +133,7 @@ extern int tda18271_debug;
 #define DBG_CAL  16
 
 #define tda_printk(kern, fmt, arg...) \
-	printk(kern "%s: " fmt, __FUNCTION__, ##arg)
+	printk(kern "%s: " fmt, __func__, ##arg)
 
 #define dprintk(kern, lvl, fmt, arg...) do {\
 	if (tda18271_debug & lvl) \
drivers/media/dvb/frontends/tda18271.h +1 -1
index 24b0e35..f489247 100644
@@ -70,7 +70,7 @@ static inline struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe,
 						   struct i2c_adapter *i2c,
 						   struct tda18271_config *cfg)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif
drivers/media/dvb/frontends/tda8083.c +2 -2
index 011b74f..5b843b2 100644
@@ -68,7 +68,7 @@ static int tda8083_writereg (struct tda8083_state* state, u8 reg, u8 data)
 
 	if (ret != 1)
 		dprintk ("%s: writereg error (reg %02x, ret == %i)\n",
-			__FUNCTION__, reg, ret);
+			__func__, reg, ret);
 
 	return (ret != 1) ? -1 : 0;
 }
@@ -83,7 +83,7 @@ static int tda8083_readregs (struct tda8083_state* state, u8 reg1, u8 *b, u8 len
 
 	if (ret != 2)
 		dprintk ("%s: readreg error (reg %02x, ret == %i)\n",
-			__FUNCTION__, reg1, ret);
+			__func__, reg1, ret);
 
 	return ret == 2 ? 0 : -1;
 }
drivers/media/dvb/frontends/tda8083.h +1 -1
index 2d33079..5a03c14 100644
@@ -42,7 +42,7 @@ extern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
 static inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
 					   struct i2c_adapter* i2c)
 {
-	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 	return NULL;
 }
 #endif // CONFIG_DVB_TDA8083
drivers/media/dvb/frontends/tda826x.c +5 -5
index bd3ebc2..2056809 100644
@@ -54,7 +54,7 @@ static int tda826x_sleep(struct dvb_frontend *fe)
 	u8 buf [] = { 0x00, 0x8d };
 	struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 };
 
-	dprintk("%s:\n", __FUNCTION__);
+	dprintk("%s:\n", __func__);
 
 	if (!priv->has_loopthrough)
 		buf[1] = 0xad;
@@ -62,7 +62,7 @@ static int tda826x_sleep(struct dvb_frontend *fe)
 	if (fe->ops.i2c_gate_ctrl)
 		fe->ops.i2c_gate_ctrl(fe, 1);
 	if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) {
-		dprintk("%s: i2c error\n", __FUNCTION__);
+		dprintk("%s: i2c error\n", __func__);
 	}
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/tda826x.h +1 -1
index ad99811..89e9792 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/tda827x.c +9 -9
index 229b119..79567a6 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/tda827x.h +1 -1
index 92eb65b..9176cf6 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/tua6100.c +1 -1
index 6ba0029..1790bae 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/tua6100.h +1 -1
index 03a665e..f83dbd5 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/ves1820.c +2 -2
index 8791701..a184597 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/ves1820.h +1 -1
index e4a2a32..e902ed6 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/ves1x93.c +3 -3
index 23fd030..2de928f 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/ves1x93.h +1 -1
index d507f89..8a5a49e 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/xc5000.c +22 -22

44 lines not on this page · raw message

drivers/media/dvb/frontends/xc5000.h +1 -1
index 32a5f1c..b890883 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/zl10353.c +3 -3
index 276e3b6..de4583c 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/frontends/zl10353.h +1 -1
index fc734c2..fdbb88f 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/av7110.c +6 -6
index 0e5701b..78919b9 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/av7110.h +1 -1
index 39fbf7d..e494e04 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/av7110_hw.c +21 -21

42 lines not on this page · raw message

drivers/media/dvb/ttpci/av7110_ir.c +3 -3
index a283e1d..23a1c63 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/av7110_v4l.c +2 -2
index e2f066f..b4a0cc5 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/budget-ci.c +1 -1
index 5093492..fbebcc9 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/budget-core.c +1 -1
index 0252081..06bbce4 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/budget.c +3 -3
index 14b00f5..6cbb52d 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/budget.h +1 -1
index d764ffa..bc8956f 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttpci/ttpci-eeprom.c +1 -1
index 1f31e91..7dd54b3 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +22 -22

44 lines not on this page · raw message

drivers/media/dvb/ttusb-dec/ttusb_dec.c +53 -53

106 lines not on this page · raw message

drivers/media/dvb/ttusb-dec/ttusbdecfe.c +2 -2
index a6fb1d6..eb5eaec 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cpia.h +2 -2
index 78392fb..5096058 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cpia2/cpia2_core.c +6 -6
index a76bd78..86922e3 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cpia_usb.c +1 -1
index 9da4726..ef1f893 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx23885/cx23885-cards.c +1 -1
index 2d414da..15ab4cb 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx23885/cx23885-core.c +49 -49

98 lines not on this page · raw message

drivers/media/video/cx23885/cx23885-dvb.c +5 -5
index ed465c0..a6d42c9 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx23885/cx23885-i2c.c +8 -8
index 92fe0bd..4ed30a4 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx23885/cx23885-video.c +27 -27

54 lines not on this page · raw message

drivers/media/video/cx88/cx88-alsa.c +1 -1
index 316b106..4345342 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx88/cx88-blackbird.c +4 -4
index a99e9d5..b01e530 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx88/cx88-core.c +2 -2
index 01e2ac9..37e82a9 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx88/cx88-dvb.c +4 -4
index f7b41eb..447e427 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx88/cx88-mpeg.c +8 -8
index e357f41..c771f5d 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/cx88/cx88-tvaudio.c +12 -12
index 76e5c78..8f4c1d2 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/em28xx/em28xx-audio.c +1 -1
index 8c67f67..92b2a6d 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/em28xx/em28xx-core.c +3 -3
index 7d1537c..26b466c 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/em28xx/em28xx-i2c.c +1 -1
index cacd04d..6dc8b54 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/em28xx/em28xx-video.c +1 -1
index 4abe670..a4b9d70 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/et61x251/et61x251.h +3 -3
index 02c741d..cc77d14 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/ir-kbd-i2c.c +1 -1
index 9851987..f8effa2 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/mt20xx.h +1 -1
index 5e9c825..aa848e1 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/ov511.h +1 -1
index 18c6422..1010e51 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/ovcamchip/ovcamchip_priv.h +2 -2
index 50c7763..9afa4fe 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/pvrusb2/pvrusb2-sysfs.c +10 -10
index 7a1cd87..734c1aa 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/pwc/pwc-if.c +3 -3
index f991d72..3ab68d4 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/saa7134/saa7134-dvb.c +6 -6
index ea2be9e..e8e06d9 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/saa7134/saa7134-empress.c +2 -2
index 3d2ec30..95511f8 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/se401.c +3 -3
index d5d7d6c..08550e8 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/sn9c102/sn9c102.h +3 -3
index 2e3c3de..0c8d87d 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/stk-webcam.c +1 -1
index ceba45a..1239bda 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/stv680.c +1 -1
index afc32aa..1414122 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tcm825x.c +1 -1
index fb895f6..6943b44 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tda8290.c +3 -3
index 55bc89a..3685617 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tda8290.h +2 -2
index dc8ef31..405d511 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tda9840.c +1 -1
index ef494fe..542e984 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tda9887.h +1 -1
index 8f873a8..be49dcb 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tea5761.h +2 -2
index 73a03b4..8eb6272 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tea5767.h +2 -2
index a44451f..7b547c0 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tea6415c.c +1 -1
index 523df0b..01d876b 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tea6420.c +1 -1
index ca05cd6..6bda3e1 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tuner-simple.h +1 -1
index 9089939..d084dd3 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tuner-xc2028.c +14 -14
index 50cf876..76b3e6a 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/tuner-xc2028.h +1 -1
index 3eb8420..612e490 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/usbvideo/konicawc.c +1 -1
index 719b17c..78afaee 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/usbvideo/quickcam_messenger.c +1 -1
index a2acba0..e9670f0 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/usbvideo/usbvideo.c +71 -71

142 lines not on this page · raw message

drivers/media/video/usbvideo/vicam.c +1 -1
index da1ba02..7f145b6 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/usbvision/usbvision-core.c +12 -12
index 56775ab..8066366 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/usbvision/usbvision-video.c +18 -18
index df52f8a..660ba79 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/videobuf-core.c +1 -1
index eab79ff..e8ca03b 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/videobuf-dma-sg.c +2 -2
index 53fed4b..3da0e53 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/videobuf-vmalloc.c +1 -1
index 5266ecc..31df8b5 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/videodev.c +2 -2
index 0d9b637..0bf0566 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/vivi.c +11 -11
index 1db067c..89c4866 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/w9966.c +1 -1
index 08aaae0..82c937b 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/w9968cf.h +3 -3
index ec7696e..3c95316 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/zc0301/zc0301.h +3 -3
index a2de50e..7bbab54 100644

Lines of this file are not shown. View the raw message.

drivers/media/video/zoran_driver.c +2 -2
index dd3d7d2..c0daed8 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.5.4.3.500.g83a2c

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Other than that, I'm fine with this change if that's what we're doing across the rest of the kernel... Would just be easier to deal with if it could be further broken down by subdirectory.

Regards,

Mike Krufky

#2 lore raw
Quoted 8 lines · Michael Krufky
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)
Quoted 8 lines

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Other than that, I'm fine with this change if that's what we're doing across the rest of the kernel... Would just be easier to deal with if it could be further broken down by subdirectory.

No worries on my part, point me at what tree you'd like it against, and how you'd like it broken up. Or just give me a shout when it is most convenient to send an update.

Harvey

#3 lore raw
Quoted 15 lines · Harvey Harrison
Quoted 13 lines · Michael Krufky
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 7 lines
Quoted 3 lines

Other than that, I'm fine with this change if that's what we're doing across the rest of the kernel... Would just be easier to deal with if it could be further broken down by subdirectory.

No worries on my part, point me at what tree you'd like it against, and how you'd like it broken up. Or just give me a shout when it is most convenient to send an update.

OK... The v4l-dvb development tree is located on linuxtv.org... Patches should be generated against the master repository, located here:

http://linuxtv.org/hg/v4l-dvb

As far as breaking up the patch, it would be most convenient for me if you could break it down such that it is separated by subdirectory, ie:

media/video/cx88/*.[ch]
media/video/saa7134/*.[ch]
media/video/*.[ch]
media/dvb/flexcop/*.[ch]
media/dvb/frontends/*.[ch]

etc... you get the idea --

There's no need to blast all of those patches onto the mailing lists -- if you put them all into a tar.gz and email them to me privately, then I'll push them into my mercurial tree and ask Mauro to merge them into the master devel branch... They'll most likely end up going to 2.6.26

Having them broken down by directory will allow me to merge them in without conflicting with other pending changesets.

Regards,

Mike

#4 lore raw
In reply to Michael Krufky
Quoted 4 lines · Michael Krufky
Quoted 2 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

Quoted 8 lines
Quoted 2 lines
  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

#5 lore raw
Quoted 14 lines · Manu Abraham
Quoted 4 lines · Michael Krufky
Quoted 2 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

Quoted 8 lines
Quoted 2 lines
  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 5 lines

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

Manu,

Does that mean that you plan to merge multiproto soon? If that's the case, then we'd be better off if you give Harvey an "exclude list" of files he should stay away from. He can regenerate patches to those files after multiproto is merged.

Regards,

Mike

#6 lore raw
Quoted 18 lines · Michael Krufky
Quoted 17 lines · Manu Abraham
Quoted 4 lines · Michael Krufky
Quoted 2 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

Quoted 8 lines
Quoted 2 lines
  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Please make sure your changes don't conflict with the multiproto tree changes.

Quoted 9 lines
Quoted 2 lines

Regards,
Manu

Manu,

Does that mean that you plan to merge multiproto soon? If that's the case, then we'd be better off if you give Harvey an "exclude list" of files he should stay away from. He can regenerate patches to those files after multiproto is merged.

Or just apply it after both of you have merged and ignore any conflicts, I can come back to it at a later time (2.6.26-rc1 maybe?).

Cheers,

Harvey

#7 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

Quoted 34 lines · Harvey Harrison
Quoted 23 lines · Michael Krufky
Quoted 15 lines · Manu Abraham
Quoted 5 lines · Michael Krufky
Quoted 2 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

Quoted 8 lines
Quoted 3 lines
  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 6 lines

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

Quoted 8 lines

Manu,

Does that mean that you plan to merge multiproto soon? If that's the case, then we'd be better off if you give Harvey an "exclude list" of files he should stay away from. He can regenerate patches to those files after multiproto is merged.

Quoted 2 lines

Or just apply it after both of you have merged and ignore any conflicts, I can come back to it at a later time (2.6.26-rc1 maybe?).

Harvey,

The greater portion of my refactoring changes have been merged. As far as I am concerned, you should feel free to send in cleanup changesets now.

Manu,

We can't expect Harvey to avoid conflicts with multiproto -- do you have any plans to ACTUALLY merge these changes? You've been saying "any day now" for the past two years.

If you plan to merge multiproto for 2.6.26, then, IMHO, now is the time. Otherwise, it's safe for Harvey to do his cleanups.

Harvey,

If you decide to move forward with these cleanups now, please keep the previous discussion in mind -- please generate the changesets against the v4l-dvb master repository, hosted on linuxtv.org, and please separate the changesets by each level of the directory tree hierarchy.

Regards,

Mike Krufky

#8 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

Quoted 6 lines · On Thu, Apr 3, 2008 at 3:58 PM, <[email protected]> wrote:

Harvey,

If you decide to move forward with these cleanups now, please keep the previous discussion in mind -- please generate the changesets against the v4l-dvb master repository, hosted on linuxtv.org, and please separate the changesets by each level of the directory tree hierarchy.

Harvey,

You sent in three patches, video/ , common/ , and dvb/ ... but these patches are way too large.

Please break these down by each level of the directory tree hierarchy, like I asked previously.

Make one patch for files inside media/video/*.[ch] make one patch for files inside media/video/cx88/*.[ch] make one patch for files inside media/video/saa7134/*.[ch] [...]
make one patch for files inside media/dvb/b2c2/*.[ch] make one patch for files inside media/dvb/frontends/*.[ch] [...]
etc.

-Mike

#9 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

Quoted 16 lines · Michael Krufky
Quoted 6 lines · On Thu, Apr 3, 2008 at 3:58 PM, <[email protected]> wrote:

Harvey,

If you decide to move forward with these cleanups now, please keep the previous discussion in mind -- please generate the changesets against the v4l-dvb master repository, hosted on linuxtv.org, and please separate the changesets by each level of the directory tree hierarchy.

Harvey,

You sent in three patches, video/ , common/ , and dvb/ ... but these patches are way too large.

Please break these down by each level of the directory tree hierarchy, like I asked previously.

Quoted 8 lines

Make one patch for files inside media/video/*.[ch] make one patch for files inside media/video/cx88/*.[ch] make one patch for files inside media/video/saa7134/*.[ch] [...]
make one patch for files inside media/dvb/b2c2/*.[ch] make one patch for files inside media/dvb/frontends/*.[ch] [...]
etc.

Harvey,

I have received your entire patchset. Some patches have already been merged into our development tree, others have been dropped, since some of individual driver maintainers have decided to remove the __FUNCTION__ macro from their source code altogether, rather than accept this change.

I have merged the remaining pending patches into a mercurial tree, hosted on linuxtv.org:

http://linuxtv.org/hg/~mkrufky/function-func

Please note that I had to manually apply patches 8, 11 and 13, since you generated your changes against the git repository rather than the official v4l-dvb development repository hosted on linuxtv.org.

I must stress this -- all v4l-dvb patches, ESPECIALLY codingstyle-cleanups (due to the nature of those patches, touching many many files at once), should always be generated against the v4l-dvb master development repository hosted on linuxtv.org.

Now, I have a question.....

About this change from __FUNCTION__ to __func__ , I understand that this change is being done kernel-wide. At first, I had blindly accepted this change as a kernel-janitor "cleanup", until it was pointed out to me last night, that older compilers do not support __func__. Sure, one can always do the following for compat:

#ifndef __func__
#define __func__ __FUNCTION__
#endif /* __func__ */

...but the question is raised, why are we making this change in the first place?

Don't get me wrong -- as I said before, I understand that this change is kernel-wide, and I am not arguing against it. I will continue on to have this merged into 2.6.26. I would just like to see a link that points to a discussion thread on LKML that explains the reasons for this change, and where this change was globally agreed to. Again -- I am not challenging these patches. I merely want to read more information as to why we are making this move.

In the meanwhile, below is the checkpatch.pl fallout after applying your __FUNCTION__ to __func__ series. Since you are working on these codingstyle cleanups anyway, I'd imagine that you won't mind fixing these checkpatch.pl "errors" and "warnings" before we merge these changes.

I understand if you don't want to alter code that you may not be directly involved in, but I am sure you will have no trouble at least fixing the "comma after space" and "line over 80 characters" cases.

Please generate the additional cleanups against the mercurial tree that I merged your previous series to:

http://linuxtv.org/hg/~mkrufky/function-func

Also, please generate the codingstyle cleanup patches individually based on the directory structure, just as you did in your last series.

See below for the checkpatch.pl "errors" and "warnings".

Regards,

Mike

ERROR: need space after that ',' (ctx:VxV)
#78: FILE: linux/drivers/media/dvb/b2c2/flexcop-dma.c:115:

+     deb_info("%s\n",__func__);
                     ^
ERROR: need space after that ',' (ctx:VxV)
#87: FILE: linux/drivers/media/dvb/b2c2/flexcop-dma.c:165:
+     deb_info("%s\n",__func__);
                     ^

WARNING: printk() should include KERN_ facility level #99: FILE: linux/drivers/media/dvb/b2c2/flexcop-sram.c:93:
+ printk("%s: SRAM timeout\n", __func__);

WARNING: printk() should include KERN_ facility level #108: FILE: linux/drivers/media/dvb/b2c2/flexcop-sram.c:118:
+ printk("%s: SRAM timeout\n", __func__);

WARNING: printk() should include KERN_ facility level #117: FILE: linux/drivers/media/dvb/b2c2/flexcop-sram.c:130:
+ printk("%s: SRAM timeout\n", __func__);

WARNING: line over 80 characters
#126: FILE: linux/drivers/media/dvb/b2c2/flexcop-sram.c:243:
+ ddprintk("%s: dw_sram_type = %x\n", __func__,
adapter->dw_sram_type);

WARNING: line over 80 characters
#133: FILE: linux/drivers/media/dvb/b2c2/flexcop-sram.c:249:
+ ddprintk("%s: dw_sram_type = %x\n", __func__,
adapter->dw_sram_type);

WARNING: line over 80 characters
#226: FILE: linux/drivers/media/dvb/bt8xx/dst.c:1293:
+ //dprintk("%s: Getting Signal strength and other parameters\n", __func__);

ERROR: do not use C99 // comments
#226: FILE: linux/drivers/media/dvb/bt8xx/dst.c:1293:
+ //dprintk("%s: Getting Signal strength and other parameters\n", __func__);

WARNING: line over 80 characters
#238: FILE: linux/drivers/media/dvb/bt8xx/dst_ca.c:39:
+ printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \

WARNING: line over 80 characters
#241: FILE: linux/drivers/media/dvb/bt8xx/dst_ca.c:41:
+ printk(KERN_NOTICE "%s: " format "\n", __func__
, ##arg); \

#244: FILE: linux/drivers/media/dvb/bt8xx/dst_ca.c:43:
+ printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \

WARNING: line over 80 characters
#247: FILE: linux/drivers/media/dvb/bt8xx/dst_ca.c:45:
+ printk(KERN_DEBUG "%s: " format "\n", __func__ ,
##arg); \

WARNING: line over 80 characters
#256: FILE: linux/drivers/media/dvb/bt8xx/dst_ca.c:165:
+ (state->messages[10] << 8) | state->messages[11],
__func__, (char *)(&state->messages[12]));

WARNING: printk() should include KERN_ facility level #268: FILE: linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c:675:
+ printk("%s: Could not find a Twinhan DST.\n", __func__);

WARNING: line over 80 characters
#349: FILE: linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c:267:
+ dprintk("%s succeeded timeout:%lu\n", __func__,
jiffies - start);

WARNING: no space between function name and open parenthesis '(' #526: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:143:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #535: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:179:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #544: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:245:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #571: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:611:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #580: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:679:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #589: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:777:
+ dprintk ("%s\n", __func__);

WARNING: line over 80 characters
#598: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:909:
+ printk("%s switch command: 0x%04lx\n",
__func__, cmd);

WARNING: printk() should include KERN_ facility level #598: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:909:
+ printk("%s switch command: 0x%04lx\n",
__func__, cmd);

WARNING: no space between function name and open parenthesis '(' #616: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:1051:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #625: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:1068:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #634: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:1109:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #643: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:1149:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #652: FILE: linux/drivers/media/dvb/dvb-core/dvb_frontend.c:1183:
+ dprintk ("%s\n", __func__);

WARNING: printk() should include KERN_ facility level #668: FILE: linux/drivers/media/dvb/dvb-core/dvb_net.c:997:
+ printk("%s: BUG %d\n", __func__, __LINE__);

WARNING: line over 80 characters
#693: FILE: linux/drivers/media/dvb/dvb-core/dvb_net.c:1029:
+ dprintk("%s: set multi_secfilter[%d]\n",
__func__, i);

ERROR: need space after that ',' (ctx:VxV)
#823: FILE: linux/drivers/media/dvb/dvb-usb/gp8psk-fe.c:155:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#832: FILE: linux/drivers/media/dvb/dvb-usb/gp8psk-fe.c:170:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV) #844: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:480:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV) #853: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:492:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV) #862: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:504:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV) #871: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:516:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV) #880: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:526:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV) #889: FILE: linux/drivers/media/dvb/dvb-usb/m920x.c:536:

+     deb("%s\n",__func__);
                ^

ERROR: need space after that ',' (ctx:VxV)
#901: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:70:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#910: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:124:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#919: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:186:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#927: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:193:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#935: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:200:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#944: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:211:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#953: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:233:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#962: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:241:

+     deb_fe("%s\n",__func__);
                   ^

ERROR: need space after that ',' (ctx:VxV)
#971: FILE: linux/drivers/media/dvb/dvb-usb/vp702x-fe.c:266:

+     deb_fe("%s\n",__func__);
                   ^

WARNING: no space between function name and open parenthesis '(' #1016: FILE: linux/drivers/media/dvb/frontends/cx22700.c:76:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #1032: FILE: linux/drivers/media/dvb/frontends/cx22700.c:95:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #1041: FILE: linux/drivers/media/dvb/frontends/cx22700.c:108:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #1050: FILE: linux/drivers/media/dvb/frontends/cx22700.c:130:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #1059: FILE: linux/drivers/media/dvb/frontends/cx22700.c:194:
+ dprintk ("%s\n", __func__);

WARNING: printk() should include KERN_ facility level #1092: FILE: linux/drivers/media/dvb/frontends/cx22702.c:111:
+ printk("%s: readreg error (ret == %i)\n", __func__, ret);

WARNING: no space between function name and open parenthesis '(' #1101: FILE: linux/drivers/media/dvb/frontends/cx22702.c:198:
+ dprintk ("%s(%d)\n", __func__, enable);

WARNING: no space between function name and open parenthesis '(' #1110: FILE: linux/drivers/media/dvb/frontends/cx22702.c:231:
+ dprintk ("%s: invalid bandwidth\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1110: FILE: linux/drivers/media/dvb/frontends/cx22702.c:231:

+             dprintk ("%s: invalid bandwidth\n",__func__);
                                                ^

ERROR: need space after that ',' (ctx:VxV)
#1119: FILE: linux/drivers/media/dvb/frontends/cx22702.c:253:

+             dprintk("%s: Autodetecting\n",__func__);
                                           ^

WARNING: no space between function name and open parenthesis '(' #1128: FILE: linux/drivers/media/dvb/frontends/cx22702.c:264:
+ dprintk ("%s: invalid constellation\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1128: FILE: linux/drivers/media/dvb/frontends/cx22702.c:264:

+                     dprintk ("%s: invalid constellation\n",__func__);
                                                            ^

WARNING: no space between function name and open parenthesis '(' #1137: FILE: linux/drivers/media/dvb/frontends/cx22702.c:273:
+ dprintk ("%s: invalid hierarchy\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1137: FILE: linux/drivers/media/dvb/frontends/cx22702.c:273:

+                     dprintk ("%s: invalid hierarchy\n",__func__);
                                                        ^

WARNING: no space between function name and open parenthesis '(' #1146: FILE: linux/drivers/media/dvb/frontends/cx22702.c:287:
+ dprintk ("%s: invalid code_rate_HP\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1146: FILE: linux/drivers/media/dvb/frontends/cx22702.c:287:

+                     dprintk ("%s: invalid code_rate_HP\n",__func__);
                                                           ^

WARNING: no space between function name and open parenthesis '(' #1155: FILE: linux/drivers/media/dvb/frontends/cx22702.c:298:
+ dprintk ("%s: invalid code_rate_LP\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1155: FILE: linux/drivers/media/dvb/frontends/cx22702.c:298:

+                     dprintk ("%s: invalid code_rate_LP\n",__func__);
                                                           ^

WARNING: no space between function name and open parenthesis '(' #1164: FILE: linux/drivers/media/dvb/frontends/cx22702.c:310:
+ dprintk ("%s: invalid guard_interval\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1164: FILE: linux/drivers/media/dvb/frontends/cx22702.c:310:

+                     dprintk ("%s: invalid guard_interval\n",__func__);
                                                             ^

WARNING: no space between function name and open parenthesis '(' #1172: FILE: linux/drivers/media/dvb/frontends/cx22702.c:317:
+ dprintk ("%s: invalid transmission_mode\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#1172: FILE: linux/drivers/media/dvb/frontends/cx22702.c:317:

+                     dprintk ("%s: invalid transmission_mode\n",__func__);
                                                                ^

ERROR: need space after that ',' (ctx:WxV)
#1181: FILE: linux/drivers/media/dvb/frontends/cx22702.c:363:

+             ,__func__,reg0A,reg23);
              ^

ERROR: need space after that ',' (ctx:VxV)
#1181: FILE: linux/drivers/media/dvb/frontends/cx22702.c:363:

+             ,__func__,reg0A,reg23);
                       ^

ERROR: need space after that ',' (ctx:VxV)
#1181: FILE: linux/drivers/media/dvb/frontends/cx22702.c:363:

+             ,__func__,reg0A,reg23);
                             ^

ERROR: need space after that ',' (ctx:VxV)
#1214: FILE: linux/drivers/media/dvb/frontends/cx24110.c:250:

+     dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate);
                                                ^

ERROR: need space after that ',' (ctx:VxV)
#1214: FILE: linux/drivers/media/dvb/frontends/cx24110.c:250:

+     dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate);
                                                         ^

WARNING: line over 80 characters
#1331: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:92:
+ printk(KERN_WARNING "lgdt330x: %s error (addr
%02x <- %02x, err = %i)\n", __func__, msg.buf[0], msg.buf[1], err);

WARNING: line over 80 characters
#1340: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:121:
+ printk(KERN_WARNING "lgdt330x: %s: addr 0x%02x select
0x%02x error (ret == %i)\n", __func__, state->config->demod_address, reg, ret);

WARNING: line over 80 characters
#1385: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:385:
+ printk(KERN_WARNING "lgdt330x: %s: Modulation
type(%d) UNSUPPORTED\n", __func__, param->u.vsb.modulation);

WARNING: line over 80 characters
#1403: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:449:
+ dprintk("%s: TOP_CONTROL = 0x%02x, IRO_MASK = 0x%02x, IRQ_STATUS
= 0x%02x\n", __func__, buf[0], buf[1], buf[2]);

WARNING: line over 80 characters
#1421: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:484:
+ printk(KERN_WARNING "lgdt330x: %s: Modulation set to
unsupported value\n", __func__);

WARNING: line over 80 characters
#1448: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:543:
+ printk(KERN_WARNING "lgdt330x: %s: Modulation set to
unsupported value\n", __func__);

ERROR: need space after that ',' (ctx:VxV)
#1491: FILE: linux/drivers/media/dvb/frontends/lgdt330x.c:753:

+     dprintk("%s: ERROR\n",__func__);
                           ^

ERROR: need space after that ',' (ctx:VxV)
#1698: FILE: linux/drivers/media/dvb/frontends/mt352.c:525:

+     dprintk("%s: hello\n",__func__);
                           ^

WARNING: printk() should include KERN_ facility level #1966: FILE: linux/drivers/media/dvb/frontends/s5h1409.c:335:
+ printk("%s: readreg error (ret == %i)\n", __func__, ret);

WARNING: line over 80 characters
#2182: FILE: linux/drivers/media/dvb/frontends/s5h1420.c:66:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: no space between function name and open parenthesis '(' #2182: FILE: linux/drivers/media/dvb/frontends/s5h1420.c:66:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: line over 80 characters
#2206: FILE: linux/drivers/media/dvb/frontends/sp8870.c:73:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: no space between function name and open parenthesis '(' #2206: FILE: linux/drivers/media/dvb/frontends/sp8870.c:73:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: no space between function name and open parenthesis '(' #2224: FILE: linux/drivers/media/dvb/frontends/sp8870.c:107:
+ dprintk ("%s: ...\n", __func__);

WARNING: printk() should include KERN_ facility level #2234: FILE: linux/drivers/media/dvb/frontends/sp8870.c:134:
+ printk("%s: firmware upload failed!\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2235: FILE: linux/drivers/media/dvb/frontends/sp8870.c:135:
+ printk ("%s: i2c error (err == %i)\n", __func__, err);

WARNING: no space between function name and open parenthesis '(' #2242: FILE: linux/drivers/media/dvb/frontends/sp8870.c:141:
+ dprintk ("%s: done!\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2251: FILE: linux/drivers/media/dvb/frontends/sp8870.c:313:
+ dprintk ("%s\n", __func__);

WARNING: printk() should include KERN_ facility level #2278: FILE: linux/drivers/media/dvb/frontends/sp8870.c:500:
+ printk("%s: firmware crash!!!!!!\n", __func__);

WARNING: printk() should include KERN_ facility level #2287: FILE: linux/drivers/media/dvb/frontends/sp8870.c:507:
+ printk("%s: firmware lockup!!!\n", __func__);

WARNING: line over 80 characters
#2288: FILE: linux/drivers/media/dvb/frontends/sp8870.c:508:
+ printk("%s: recovered after %i
trial(s))\n", __func__, trials - 1);

WARNING: printk() should include KERN_ facility level #2288: FILE: linux/drivers/media/dvb/frontends/sp8870.c:508:
+ printk("%s: recovered after %i
trial(s))\n", __func__, trials - 1);
WARNING: line over 80 characters
#2294: FILE: linux/drivers/media/dvb/frontends/sp8870.c:513:
+ printk("%s: switches = %i lockups = %i\n", __func__,
switches, lockups);

WARNING: printk() should include KERN_ facility level #2294: FILE: linux/drivers/media/dvb/frontends/sp8870.c:513:
+ printk("%s: switches = %i lockups = %i\n", __func__,
switches, lockups);

WARNING: printk() should include KERN_ facility level #2336: FILE: linux/drivers/media/dvb/frontends/sp887x.c:85:
+ printk("%s: readreg error (ret == %i)\n", __func__, ret);

WARNING: no space between function name and open parenthesis '(' #2381: FILE: linux/drivers/media/dvb/frontends/sp887x.c:158:
+ printk ("%s: firmware upload... ", __func__);

WARNING: no space between function name and open parenthesis '(' #2390: FILE: linux/drivers/media/dvb/frontends/sp887x.c:184:
+ printk ("%s: i2c error (err == %i)\n", __func__, err);

WARNING: line over 80 characters
#2423: FILE: linux/drivers/media/dvb/frontends/stv0297.c:78:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg, ret);

WARNING: line over 80 characters
#2428: FILE: linux/drivers/media/dvb/frontends/stv0297.c:82:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg, ret);

WARNING: line over 80 characters
#2434: FILE: linux/drivers/media/dvb/frontends/stv0297.c:87:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg, ret);

WARNING: line over 80 characters
#2443: FILE: linux/drivers/media/dvb/frontends/stv0297.c:118:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg1, ret);

WARNING: line over 80 characters
#2448: FILE: linux/drivers/media/dvb/frontends/stv0297.c:122:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg1, ret);

WARNING: line over 80 characters
#2454: FILE: linux/drivers/media/dvb/frontends/stv0297.c:127:
+ dprintk("%s: readreg error (reg == 0x%02x, ret
== %i)\n", __func__, reg1, ret);

WARNING: no space between function name and open parenthesis '(' #2504: FILE: linux/drivers/media/dvb/frontends/stv0299.c:137:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2513: FILE: linux/drivers/media/dvb/frontends/stv0299.c:177:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2522: FILE: linux/drivers/media/dvb/frontends/stv0299.c:192:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2527: FILE: linux/drivers/media/dvb/frontends/stv0299.c:196:
+ dprintk ("%s: timeout!!\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2536: FILE: linux/drivers/media/dvb/frontends/stv0299.c:209:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2541: FILE: linux/drivers/media/dvb/frontends/stv0299.c:213:
+ dprintk ("%s: timeout!!\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2550: FILE: linux/drivers/media/dvb/frontends/stv0299.c:248:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2560: FILE: linux/drivers/media/dvb/frontends/stv0299.c:260:
+ dprintk ("%s : srate = %i\n", __func__, srate);

WARNING: no space between function name and open parenthesis '(' #2561: FILE: linux/drivers/media/dvb/frontends/stv0299.c:261:
+ dprintk ("%s : ofset = %i\n", __func__, offset);

WARNING: no space between function name and open parenthesis '(' #2570: FILE: linux/drivers/media/dvb/frontends/stv0299.c:279:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2579: FILE: linux/drivers/media/dvb/frontends/stv0299.c:308:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2597: FILE: linux/drivers/media/dvb/frontends/stv0299.c:411:
+ printk ("%s switch command: 0x%04lx\n",__func__, cmd);

ERROR: need space after that ',' (ctx:VxV)
#2597: FILE: linux/drivers/media/dvb/frontends/stv0299.c:411:

+             printk ("%s switch command: 0x%04lx\n",__func__, cmd);
                                                    ^

WARNING: no space between function name and open parenthesis '(' #2615: FILE: linux/drivers/media/dvb/frontends/stv0299.c:464:
+ dprintk ("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __func__, sync);

WARNING: line over 80 characters
#2624: FILE: linux/drivers/media/dvb/frontends/stv0299.c:502:
+ dprintk ("%s : FE_READ_SIGNAL_STRENGTH : AGC2I: 0x%02x%02x,
signal=0x%04x\n", __func__,

WARNING: no space between function name and open parenthesis '(' #2624: FILE: linux/drivers/media/dvb/frontends/stv0299.c:502:
+ dprintk ("%s : FE_READ_SIGNAL_STRENGTH : AGC2I: 0x%02x%02x,
signal=0x%04x\n", __func__,

WARNING: no space between function name and open parenthesis '(' #2633: FILE: linux/drivers/media/dvb/frontends/stv0299.c:539:
+ dprintk ("%s : FE_SET_FRONTEND\n", __func__);

WARNING: no space between function name and open parenthesis '(' #2997: FILE: linux/drivers/media/dvb/frontends/tda10086.c:112:
+ dprintk ("%s\n", __func__);

WARNING: line over 80 characters
#3006: FILE: linux/drivers/media/dvb/frontends/tda10086.c:177:
+ printk("%s: diseqc queue not ready, command may
be lost.\n", __func__);

WARNING: printk() should include KERN_ facility level #3006: FILE: linux/drivers/media/dvb/frontends/tda10086.c:177:
+ printk("%s: diseqc queue not ready, command may
be lost.\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3015: FILE: linux/drivers/media/dvb/frontends/tda10086.c:189:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3024: FILE: linux/drivers/media/dvb/frontends/tda10086.c:215:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3033: FILE: linux/drivers/media/dvb/frontends/tda10086.c:243:
+ dprintk ("%s\n", __func__);

WARNING: line over 80 characters
#3042: FILE: linux/drivers/media/dvb/frontends/tda10086.c:270:
+ dprintk ("%s %i %i\n", __func__, fe_params->inversion,
state->config->invert);

WARNING: no space between function name and open parenthesis '(' #3042: FILE: linux/drivers/media/dvb/frontends/tda10086.c:270:
+ dprintk ("%s %i %i\n", __func__, fe_params->inversion,
state->config->invert);

WARNING: no space between function name and open parenthesis '(' #3051: FILE: linux/drivers/media/dvb/frontends/tda10086.c:304:
+ dprintk ("%s %i\n", __func__, symbol_rate);

WARNING: no space between function name and open parenthesis '(' #3060: FILE: linux/drivers/media/dvb/frontends/tda10086.c:370:
+ dprintk ("%s %i\n", __func__, fe_params->u.qpsk.fec_inner);

WARNING: no space between function name and open parenthesis '(' #3069: FILE: linux/drivers/media/dvb/frontends/tda10086.c:416:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3078: FILE: linux/drivers/media/dvb/frontends/tda10086.c:463:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3087: FILE: linux/drivers/media/dvb/frontends/tda10086.c:554:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3096: FILE: linux/drivers/media/dvb/frontends/tda10086.c:583:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3105: FILE: linux/drivers/media/dvb/frontends/tda10086.c:596:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3114: FILE: linux/drivers/media/dvb/frontends/tda10086.c:608:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3123: FILE: linux/drivers/media/dvb/frontends/tda10086.c:624:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3132: FILE: linux/drivers/media/dvb/frontends/tda10086.c:639:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3141: FILE: linux/drivers/media/dvb/frontends/tda10086.c:650:
+ dprintk ("%s\n", __func__);

WARNING: no space between function name and open parenthesis '(' #3150: FILE: linux/drivers/media/dvb/frontends/tda10086.c:741:
+ dprintk ("%s\n", __func__);

WARNING: printk() should include KERN_ facility level #3303: FILE: linux/drivers/media/dvb/frontends/tua6100.c:62:
+ printk("%s: i2c error\n", __func__);

WARNING: line over 80 characters
#3327: FILE: linux/drivers/media/dvb/frontends/ves1820.c:69:
+ "val == 0x%02x, ret == %i)\n", __func__, reg, data, ret);

WARNING: line over 80 characters
#3360: FILE: linux/drivers/media/dvb/frontends/ves1x93.c:101:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: no space between function name and open parenthesis '(' #3360: FILE: linux/drivers/media/dvb/frontends/ves1x93.c:101:
+ dprintk ("%s: writereg error (err == %i, reg == 0x%02x,
data == 0x%02x)\n", __func__, err, reg, data);

WARNING: line over 80 characters
#3648: FILE: linux/drivers/media/dvb/ttpci/av7110.c:362:
+ printk(KERN_ERR "%s: saa7146_wait_for_debi_done timed
out\n", __func__);

WARNING: line over 80 characters
#3657: FILE: linux/drivers/media/dvb/ttpci/av7110.c:500:
+ printk(KERN_ERR "%s: saa7146_wait_for_debi_done timed
out\n", __func__);

WARNING: line over 80 characters
#3705: FILE: linux/drivers/media/dvb/ttpci/av7110.h:47:
+ do { if ((av7110_debug & level)) { printk("dvb-ttpci: %s():
", __func__); printk(args); } } while (0)

WARNING: printk() should include KERN_ facility level #3717: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:56:
+ printk("%s: invalid count %d\n", __func__, count);

WARNING: printk() should include KERN_ facility level #3722: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:60:
+ printk("%s: wait_for_debi_done failed\n", __func__);

WARNING: printk() should include KERN_ facility level #3731: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:79:
+ printk("%s: invalid count %d\n", __func__, count);

WARNING: printk() should include KERN_ facility level #3736: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:83:
+ printk("%s: wait_for_debi_done 1 failed\n", __func__);

WARNING: printk() should include KERN_ facility level #3745: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:94:
+ printk("%s: wait_for_debi_done #2 failed\n", __func__);

WARNING: line over 80 characters
#3763: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:365:
+ printk(KERN_ERR "dvb-ttpci: %s(): timeout
waiting for COMMAND idle\n", __func__);

WARNING: line over 80 characters
#3772: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:382:
+ printk(KERN_ERR "dvb-ttpci: %s(): timeout
waiting for HANDSHAKE_REG\n", __func__);

WARNING: line over 80 characters
#3830: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:578:
+ printk(KERN_ERR "%s: timeout waiting for COMMAND
to complete\n", __func__);

WARNING: line over 80 characters
#3839: FILE: linux/drivers/media/dvb/ttpci/av7110_hw.c:594:
+ printk(KERN_ERR "%s: timeout waiting for
HANDSHAKE_REG\n", __func__);

WARNING: printk() should include KERN_ facility level #3893: FILE: linux/drivers/media/dvb/ttpci/av7110_ir.c:136:
+ printk("%s invalid protocol %x\n", __func__, ir->protocol);

WARNING: printk() should include KERN_ facility level #3944: FILE: linux/drivers/media/dvb/ttpci/budget-ci.c:1134:
+ printk("%s: No LNBP21 found!\n", __func__);

WARNING: line over 80 characters
#3956: FILE: linux/drivers/media/dvb/ttpci/budget-core.c:226:
+ budget->dev->name, __func__,
budget->buffer_warnings, count);

WARNING: printk() should include KERN_ facility level #3968: FILE: linux/drivers/media/dvb/ttpci/budget.c:441:
+ printk("%s: No LNBP21 found!\n", __func__);

WARNING: printk() should include KERN_ facility level #3977: FILE: linux/drivers/media/dvb/ttpci/budget.c:457:
+ printk("%s: No tda826x found!\n", __func__);

WARNING: printk() should include KERN_ facility level #3980: FILE: linux/drivers/media/dvb/ttpci/budget.c:459:
+ printk("%s: No LNBP21 found!\n", __func__);

WARNING: line over 80 characters
#3997: FILE: linux/drivers/media/dvb/ttpci/budget.h:29:
+ do { if ((budget_debug & level)) { printk("%s: %s():
",__stringify(KBUILD_MODNAME), __func__); printk(args); } } while (0)

ERROR: need space after that ',' (ctx:VxV)
#3997: FILE: linux/drivers/media/dvb/ttpci/budget.h:29:
+ do { if ((budget_debug & level)) { printk("%s: %s():
",__stringify(KBUILD_MODNAME), __func__); printk(args); } } while (0)

                                                                ^

WARNING: line over 80 characters
#4001: FILE: linux/drivers/media/dvb/ttpci/budget.h:32:
+ do { if ((budget_debug & level)) { printk("%s: %s(): ",
KBUILD_MODNAME, __func__); printk(args); } } while (0)

WARNING: printk() should include KERN_ facility level
#4040: FILE: linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:179:
+ printk("%s: failed, receive error %d\n", __func__,

WARNING: printk() should include KERN_ facility level
#4094: FILE: linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:464:
+ printk("%s: dsp-version: %c%c%c\n", __func__,

WARNING: printk() should include KERN_ facility level
#4148: FILE: linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:624:
+ printk("%s: too much work\n", __func__);

WARNING: printk() should include KERN_ facility level
#4184: FILE: linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:848:
+ printk("%s: iso xfer already running!\n", __func__);

ERROR: need space after that ',' (ctx:VxV)
#4228: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:239:

+                                     __func__,urb->status);
                                              ^

WARNING: printk() should include KERN_ facility level #4264: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:294:
+ printk("%s: Failed to lock usb mutex.\n", __func__);

WARNING: printk() should include KERN_ facility level #4325: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:437:
+ printk("%s: packet too short - discarding\n", __func__);

WARNING: printk() should include KERN_ facility level #4331: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:442:
+ printk("%s: packet too long - discarding\n", __func__);

WARNING: printk() should include KERN_ facility level #4340: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:525:
+ printk("%s: unknown PVA type: %02x.\n", __func__,

WARNING: printk() should include KERN_ facility level #4349: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:564:
+ printk("%s: odd sized packet - discarding\n", __func__);

WARNING: printk() should include KERN_ facility level #4358: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:572:
+ printk("%s: checksum failed - discarding\n", __func__);

WARNING: printk() should include KERN_ facility level #4493: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1236:
+ printk("%s: usb_submit_urb failed\n",__func__);

ERROR: need space after that ',' (ctx:VxV)
#4493: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1236:

+             printk("%s: usb_submit_urb failed\n",__func__);
                                                  ^

WARNING: printk() should include KERN_ facility level #4585: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1476:
+ printk("%s: dvb_dmx_init failed: error %d\n", __func__,

WARNING: printk() should include KERN_ facility level #4603: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1502:
+ printk("%s: dvb_dmx_init failed: error %d\n", __func__,

WARNING: printk() should include KERN_ facility level #4612: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1514:
+ printk("%s: dvb_dmx_init failed: error %d\n", __func__,

WARNING: printk() should include KERN_ facility level #4654: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1639:
+ printk("%s: couldn't allocate memory.\n", __func__);

WARNING: printk() should include KERN_ facility level #4672: FILE: linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c:1771:
+ printk("%s: initialisation failed: error %d.\n", __func__,

WARNING: line over 80 characters
#4705: FILE: linux/drivers/media/video/cpia.h:426:
+#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __func__ , __LINE__ , ##args)

ERROR: need space after that ',' (ctx:VxV)
#4705: FILE: linux/drivers/media/video/cpia.h:426:
+#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __func__ , __LINE__ , ##args)

                ^

WARNING: line over 80 characters
#4710: FILE: linux/drivers/media/video/cpia.h:430:
+#define DBG(fmt,args...) ADBG(KERN_DEBUG __FILE__" (%ld):%s(%d):" fmt, __func__, __LINE__ , ##args)

ERROR: need space after that ',' (ctx:VxV)
#4710: FILE: linux/drivers/media/video/cpia.h:430:
+#define DBG(fmt,args...) ADBG(KERN_DEBUG __FILE__" (%ld):%s(%d):" fmt, __func__, __LINE__ , ##args)

                ^

ERROR: need space after that ',' (ctx:VxV)
#4722: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:573:

+             LOG("%s: invalid request mode\n",__func__);
                                              ^

ERROR: need space after that ',' (ctx:VxV)
#4731: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:955:
+ LOG("%s: Invalid sensor flag value 0x%0X\n",__func__,

                                                         ^

ERROR: need space after that ',' (ctx:VxV)
#4740: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:2359:

+             ERR("%s: buffer NULL\n",__func__);
                                     ^

ERROR: need space after that ',' (ctx:VxV)
#4746: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:2364:

+             ERR("%s: Internal error, camera_data NULL!\n",__func__);
                                                           ^

ERROR: need space after that ',' (ctx:VxV)
#4755: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:2373:

+             LOG("%s: camera removed\n",__func__);
                                        ^

ERROR: need space after that ',' (ctx:VxV)
#4764: FILE: linux/drivers/media/video/cpia2/cpia2_core.c:2437:

+             ERR("%s: Internal error, camera_data not found!\n",__func__);
                                                                ^

ERROR: no space before that close parenthesis ')'
#5019: FILE: linux/drivers/media/video/cx23885/cx23885-core.c:1062:
+ dprintk(1, "%s() enabling TS int's and DMA\n", __func__ );

ERROR: need space after that ',' (ctx:VxV)
#5080: FILE: linux/drivers/media/video/cx23885/cx23885-core.c:1261:

+     dprintk(1, "%s()\n",__func__);
                         ^

WARNING: printk() should include KERN_ facility level #5123: FILE: linux/drivers/media/video/cx23885/cx23885-dvb.c:361:
+ printk("%s() dvb_register failed err = %d\n", __func__, err);

ERROR: do not use C99 // comments
#5447: FILE: linux/drivers/media/video/cx88/cx88-alsa.c:556:
+// dprintk(2, "%s - count %d (+%u), period %d, frame %lu\n", __func__,

ERROR: need space after that ',' (ctx:VxV)
#5459: FILE: linux/drivers/media/video/cx88/cx88-blackbird.c:322:

+     dprintk(1,"%s: 0x%X\n", __func__, command);
               ^

ERROR: no space after that open parenthesis '('
#5468: FILE: linux/drivers/media/video/cx88/cx88-blackbird.c:1084:
+ dprintk( 1, "%s\n", __func__);

WARNING: line over 80 characters
#5477: FILE: linux/drivers/media/video/cx88/cx88-blackbird.c:1094:
+ dprintk(1,"%s: Unable to acquire hardware,
%d\n", __func__, err);

ERROR: need space after that ',' (ctx:VxV)
#5477: FILE: linux/drivers/media/video/cx88/cx88-blackbird.c:1094:
+ dprintk(1,"%s: Unable to acquire hardware,

%d\n", __func__, err);
                               ^

ERROR: no space after that open parenthesis '('
#5486: FILE: linux/drivers/media/video/cx88/cx88-blackbird.c:1316:
+ dprintk( 1, "%s\n", __func__);

WARNING: printk() should include KERN_ facility level #5498: FILE: linux/drivers/media/video/cx88/cx88-core.c:578:
+ printk("%s: %d buffers handled (should be 1)\n",__func__,bc);

ERROR: need space after that ',' (ctx:VxV)
#5498: FILE: linux/drivers/media/video/cx88/cx88-core.c:578:

+             printk("%s: %d buffers handled (should be 1)\n",__func__,bc);
                                                             ^

ERROR: need space after that ',' (ctx:VxV)
#5498: FILE: linux/drivers/media/video/cx88/cx88-core.c:578:

+             printk("%s: %d buffers handled (should be 1)\n",__func__,bc);
                                                                      ^

ERROR: need space after that ',' (ctx:VxV)
#5507: FILE: linux/drivers/media/video/cx88/cx88-core.c:607:

+     dprintk(1,"%s\n",__func__);
               ^

ERROR: need space after that ',' (ctx:VxV)
#5507: FILE: linux/drivers/media/video/cx88/cx88-core.c:607:

+     dprintk(1,"%s\n",__func__);
                      ^

ERROR: no space after that open parenthesis '(' #5550: FILE: linux/drivers/media/video/cx88/cx88-dvb.c:882:
+ dprintk( 1, "%s\n", __func__);

ERROR: no space after that open parenthesis '(' #5559: FILE: linux/drivers/media/video/cx88/cx88-dvb.c:905:
+ dprintk( 1, "%s\n", __func__);

ERROR: no space after that open parenthesis '(' #5568: FILE: linux/drivers/media/video/cx88/cx88-dvb.c:926:
+ dprintk( 1, "%s\n", __func__);

WARNING: line over 80 characters
#5580: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:178:
+ printk( "%s() Failed. Unsupported value in .mpeg
(0x%08x)\n", __func__,

WARNING: printk() should include KERN_ facility level #5580: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:178:
+ printk( "%s() Failed. Unsupported value in .mpeg
(0x%08x)\n", __func__,

ERROR: no space after that open parenthesis '(' #5580: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:178:
+ printk( "%s() Failed. Unsupported value in .mpeg
(0x%08x)\n", __func__,

ERROR: need space after that ',' (ctx:VxV)
#5616: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:383:

+     dprintk(1, "%s\n",__func__);
                       ^

WARNING: line over 80 characters
#5625: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:686:
+ mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __func__,
cx_read(MO_GP0_IO));

ERROR: need space after that ',' (ctx:VxV)
#5625: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:686:
+ mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __func__,

cx_read(MO_GP0_IO));
                        ^

WARNING: line over 80 characters
#5634: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:702:
+ mpeg_dbg(1,"%s() Post release GPIO=%x\n", __func__,
cx_read(MO_GP0_IO));

ERROR: need space after that ',' (ctx:VxV)
#5634: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:702:
+ mpeg_dbg(1,"%s() Post release GPIO=%x\n", __func__,

cx_read(MO_GP0_IO));
                        ^

ERROR: no space after that open parenthesis '(' #5643: FILE: linux/drivers/media/video/cx88/cx88-mpeg.c:876:
+ dprintk( 1, "%s\n", __func__);

ERROR: need space after that ',' (ctx:VxV)
#6039: FILE: linux/drivers/media/video/saa7134/saa7134-empress.c:422:

+     dprintk("%s: %s\n",dev->name,__func__);
                        ^

ERROR: need space after that ',' (ctx:VxV)
#6039: FILE: linux/drivers/media/video/saa7134/saa7134-empress.c:422:

+     dprintk("%s: %s\n",dev->name,__func__);
                                  ^

ERROR: need space after that ',' (ctx:VxV)
#6048: FILE: linux/drivers/media/video/saa7134/saa7134-empress.c:470:

+     dprintk("%s: %s\n",dev->name,__func__);
                        ^

ERROR: need space after that ',' (ctx:VxV)
#6048: FILE: linux/drivers/media/video/saa7134/saa7134-empress.c:470:

+     dprintk("%s: %s\n",dev->name,__func__);
                                  ^

WARNING: line over 80 characters
#6060: FILE: linux/drivers/media/video/se401.c:307:
+ dbg("%s - urb shutting down with status: %d", __func__,
urb->status);

#6064: FILE: linux/drivers/media/video/se401.c:310:
+ dbg("%s - nonzero urb status received: %d", __func__,
urb->status);

WARNING: line over 80 characters
#6241: FILE: linux/drivers/media/video/tda9840.c:40:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

ERROR: need space after that ',' (ctx:VxV)
#6241: FILE: linux/drivers/media/video/tda9840.c:40:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

                                                   ^

WARNING: line over 80 characters
#6245: FILE: linux/drivers/media/video/tda9840.c:43:
+ do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME,
__func__, __LINE__); printk(args); } } while (0)

WARNING: line over 80 characters
#6311: FILE: linux/drivers/media/video/tea6415c.c:42:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

ERROR: need space after that ',' (ctx:VxV)
#6311: FILE: linux/drivers/media/video/tea6415c.c:42:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

                                                   ^

WARNING: line over 80 characters
#6315: FILE: linux/drivers/media/video/tea6415c.c:45:
+ do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME,
__func__, __LINE__); printk(args); } } while (0)

WARNING: line over 80 characters
#6327: FILE: linux/drivers/media/video/tea6420.c:42:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

ERROR: need space after that ',' (ctx:VxV)
#6327: FILE: linux/drivers/media/video/tea6420.c:42:
+ do { if (debug) { printk("%s: %s()[%d]:
",__stringify(KBUILD_MODNAME), __func__, __LINE__); printk(args); } } while (0)

                                                   ^

WARNING: line over 80 characters
#6331: FILE: linux/drivers/media/video/tea6420.c:45:
+ do { if (debug) { printk("%s: %s()[%d]: ", KBUILD_MODNAME,
__func__, __LINE__); printk(args); } } while (0)

WARNING: line over 80 characters
#6508: FILE: linux/drivers/media/video/usbvideo/konicawc.c:67:
+ printk(KERN_DEBUG __FILE__ ":%s(): " format "\n",
__func__ , #arg); \

WARNING: line over 80 characters
#6520: FILE: linux/drivers/media/video/usbvideo/quickcam_messenger.c:54:
+ printk(KERN_DEBUG __FILE__ ":%s(): " format "\n",
__func__ , #arg); \

WARNING: line over 80 characters
#6642: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:791:
+ dbg("%s: Deallocating cams=$%p (%d. cameras)", __func__, cams,
cams->num_cameras);

WARNING: line over 80 characters
#6716: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1020:
+ info("%s: No video endpoint specified; data pump
disabled.", __func__);

WARNING: line over 80 characters
#6765: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1123:
+ err("%s: Someone tried to open an already opened
device!", __func__);

WARNING: line over 80 characters
#6783: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1183:
+ info("%s: setupOnOpen callback",
__func__);

WARNING: line over 80 characters
#6791: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1189:
+ info("%s: setupOnOpen callback
successful", __func__);

WARNING: line over 80 characters
#6843: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1556:
+ err("%s: No default palette; don't know what to
do!", __func__);

WARNING: line over 80 characters
#6900: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1793:
+ err("%s: usb_submit_isoc(%d) ret %d", __func__,
i, errFlag);

WARNING: line over 80 characters
#6906: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1798:
+ info("%s: streaming=1 video_endp=$%02x", __func__,
uvd->video_endp);

WARNING: line over 80 characters
#6962: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1979:
+ info("%s: Camera is not operational
(1)", __func__);

WARNING: line over 80 characters
#6971: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1988:
+ info("%s: Camera is not
operational (2)", __func__);

WARNING: line over 80 characters
#6978: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:1994:
+ info("%s: Signal=$%08x",
__func__, signalPending);

WARNING: line over 80 characters
#6985: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2000:
+ info("%s: Forced test
pattern screen", __func__);

WARNING: line over 80 characters
#6991: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2005:
+ info("%s: Interrupted!",
__func__);

WARNING: line over 80 characters
#7000: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2015:
+ err("%s: processData not set", __func__);

WARNING: line over 80 characters
#7006: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2020:
+ __func__, frame->frameState, frame->seqRead_Length);

WARNING: line over 80 characters
#7012: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2025:
+ err("%s: usbvideo_NewFrame() failed
(%d.)", __func__, ret);

WARNING: line over 80 characters
#7021: FILE: linux/drivers/media/video/usbvideo/usbvideo.c:2057:
+ info("%s: Entered FrameState_Done_Hold state.", __func__);

ERROR: need space after that ',' (ctx:VxV)
#7057: FILE: linux/drivers/media/video/usbvideo/vicam.c:53:
+#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, __func__, lineno, ##args)

                    ^

ERROR: need space after that ',' (ctx:VxV)
#7057: FILE: linux/drivers/media/video/usbvideo/vicam.c:53:
+#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, __func__, lineno, ##args)

                        ^

ERROR: need space after that ',' (ctx:VxV)
#7081: FILE: linux/drivers/media/video/videobuf-dma-sg.c:256:

+                            "%s: videobuf_map_sg failed\n",__func__);
                                                           ^

ERROR: need space after that ',' (ctx:VxV)
#7090: FILE: linux/drivers/media/video/videobuf-dma-sg.c:479:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                      ^

ERROR: need space after that ',' (ctx:VxV)
#7090: FILE: linux/drivers/media/video/videobuf-dma-sg.c:479:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                         ^

ERROR: need space after that ',' (ctx:VxV)
#7090: FILE: linux/drivers/media/video/videobuf-dma-sg.c:479:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                                           ^

ERROR: need space after that ',' (ctx:VxV)
#7102: FILE: linux/drivers/media/video/videobuf-vmalloc.c:118:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                      ^

ERROR: need space after that ',' (ctx:VxV)
#7102: FILE: linux/drivers/media/video/videobuf-vmalloc.c:118:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                         ^

ERROR: need space after that ',' (ctx:VxV)
#7102: FILE: linux/drivers/media/video/videobuf-vmalloc.c:118:
+ __func__,vb,(long)sizeof(*vb),(long)size-sizeof(*vb),

                                           ^

total: 82 errors, 185 warnings, 6179 lines checked

#10 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

Quoted 85 lines · Michael Krufky
Quoted 16 lines · Michael Krufky
Quoted 6 lines · On Thu, Apr 3, 2008 at 3:58 PM, <[email protected]> wrote:

Harvey,

If you decide to move forward with these cleanups now, please keep the previous discussion in mind -- please generate the changesets against the v4l-dvb master repository, hosted on linuxtv.org, and please separate the changesets by each level of the directory tree hierarchy.

Harvey,

You sent in three patches, video/ , common/ , and dvb/ ... but these patches are way too large.

Please break these down by each level of the directory tree hierarchy, like I asked previously.

Quoted 8 lines

Make one patch for files inside media/video/*.[ch] make one patch for files inside media/video/cx88/*.[ch] make one patch for files inside media/video/saa7134/*.[ch] [...]
make one patch for files inside media/dvb/b2c2/*.[ch] make one patch for files inside media/dvb/frontends/*.[ch] [...]
etc.

Harvey,

I have received your entire patchset. Some patches have already been merged into our development tree, others have been dropped, since some of individual driver maintainers have decided to remove the __FUNCTION__ macro from their source code altogether, rather than accept this change.

I have merged the remaining pending patches into a mercurial tree, hosted on linuxtv.org:

http://linuxtv.org/hg/~mkrufky/function-func

Please note that I had to manually apply patches 8, 11 and 13, since you generated your changes against the git repository rather than the official v4l-dvb development repository hosted on linuxtv.org.

I must stress this -- all v4l-dvb patches, ESPECIALLY codingstyle-cleanups (due to the nature of those patches, touching many many files at once), should always be generated against the v4l-dvb master development repository hosted on linuxtv.org.

Now, I have a question.....

About this change from __FUNCTION__ to __func__ , I understand that this change is being done kernel-wide. At first, I had blindly accepted this change as a kernel-janitor "cleanup", until it was pointed out to me last night, that older compilers do not support __func__. Sure, one can always do the following for compat:

#ifndef __func__
#define __func__ __FUNCTION__
#endif /* __func__ */

...but the question is raised, why are we making this change in the first place?

Don't get me wrong -- as I said before, I understand that this change is kernel-wide, and I am not arguing against it. I will continue on to have this merged into 2.6.26. I would just like to see a link that points to a discussion thread on LKML that explains the reasons for this change, and where this change was globally agreed to. Again -- I am not challenging these patches. I merely want to read more information as to why we are making this move.

In the meanwhile, below is the checkpatch.pl fallout after applying your __FUNCTION__ to __func__ series. Since you are working on these codingstyle cleanups anyway, I'd imagine that you won't mind fixing these checkpatch.pl "errors" and "warnings" before we merge these changes.

I understand if you don't want to alter code that you may not be directly involved in, but I am sure you will have no trouble at least fixing the "comma after space" and "line over 80 characters" cases.

Please generate the additional cleanups against the mercurial tree that I merged your previous series to:

http://linuxtv.org/hg/~mkrufky/function-func

Quoted 8 lines

Also, please generate the codingstyle cleanup patches individually based on the directory structure, just as you did in your last series.

See below for the checkpatch.pl "errors" and "warnings".

Regards,

Mike

I suggest to _ignore_ the line-length warnings.
Fixing them makes the code less readable than the original code in most cases...

CU
Oliver

Signature · 3 lines
----------------------------------------------------------------
VDR Remote Plugin 0.4.0: http://www.escape-edv.de/endriss/vdr/
----------------------------------------------------------------
#11 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

In reply to Michael Krufky
Quoted 9 lines · Michael Krufky

On Fri, Apr 4, 2008 at 11:09 AM, Michael Krufky <[email protected]> Harvey,

I have received your entire patchset. Some patches have already been merged into our development tree, others have been dropped, since some of individual driver maintainers have decided to remove the __FUNCTION__ macro from their source code altogether, rather than accept this change.

Quoted 8 lines

I have merged the remaining pending patches into a mercurial tree, hosted on linuxtv.org:

http://linuxtv.org/hg/~mkrufky/function-func

Please note that I had to manually apply patches 8, 11 and 13, since you generated your changes against the git repository rather than the official v4l-dvb development repository hosted on linuxtv.org.

I don't know/use mercurial, sorry, I thought git-v4l's devel branch on kernel.org would be a mirror of the development tree...guess I was mistaken

Quoted 14 lines

I must stress this -- all v4l-dvb patches, ESPECIALLY codingstyle-cleanups (due to the nature of those patches, touching many many files at once), should always be generated against the v4l-dvb master development repository hosted on linuxtv.org.

Now, I have a question.....

About this change from __FUNCTION__ to __func__ , I understand that this change is being done kernel-wide. At first, I had blindly accepted this change as a kernel-janitor "cleanup", until it was pointed out to me last night, that older compilers do not support __func__. Sure, one can always do the following for compat:

Quoted 3 lines

#ifndef __func__
#define __func__ __FUNCTION__
#endif /* __func__ */

This is already done in kernel.h, so __func__ is already being passed to any compiler used on the kernel....

/* Trap pasters of __FUNCTION__ at compile-time */ #define __FUNCTION__ (__func__)

Quoted 11 lines

...but the question is raised, why are we making this change in the first place?

Don't get me wrong -- as I said before, I understand that this change is kernel-wide, and I am not arguing against it. I will continue on to have this merged into 2.6.26. I would just like to see a link that points to a discussion thread on LKML that explains the reasons for this change, and where this change was globally agreed to. Again -- I am not challenging these patches. I merely want to read more information as to why we are making this move.

Quoted 5 lines

In the meanwhile, below is the checkpatch.pl fallout after applying your __FUNCTION__ to __func__ series. Since you are working on these codingstyle cleanups anyway, I'd imagine that you won't mind fixing these checkpatch.pl "errors" and "warnings" before we merge these changes.

For such a large set in v4l, it's a drastic increase in work to do so in this case as it is a simple sed s/__FUNCTION__/__func__/

Quoted 9 lines

I understand if you don't want to alter code that you may not be directly involved in, but I am sure you will have no trouble at least fixing the "comma after space" and "line over 80 characters" cases.

Please generate the additional cleanups against the mercurial tree that I merged your previous series to:

http://linuxtv.org/hg/~mkrufky/function-func

Do you have a git mirror somewhere?

Quoted 5 lines

Also, please generate the codingstyle cleanup patches individually based on the directory structure, just as you did in your last series.

See below for the checkpatch.pl "errors" and "warnings".

I can't say I have much enthusiasm for that, but if you'd really want such a patch, I will try to get to it this week.

Harvey

#12 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

Quoted 2 lines · On Wed, 09 Apr 2008 11:30:25 -0700 Harvey Harrison <[email protected]>…

For such a large set in v4l, it's a drastic increase in work to do so in this case as it is a simple sed s/__FUNCTION__/__func__/

I think the "sed" approach is the better, on this case. It avoids mistakes that might be caused by manual changes of that amount of line changes.

Quoted 10 lines
Quoted 8 lines

I understand if you don't want to alter code that you may not be directly involved in, but I am sure you will have no trouble at least fixing the "comma after space" and "line over 80 characters" cases.

Please generate the additional cleanups against the mercurial tree that I merged your previous series to:

http://linuxtv.org/hg/~mkrufky/function-func

Do you have a git mirror somewhere?

The V4L/DVB -git tree is at:
http://www.kernel.org/git/?p=linux/kernel/git/mchehab/v4l-dvb.git

Also, linux-next is updated with the same patches applied on the above tree.

However, some manual adjustments may still be needed, since we have backward compatibility code on Mercurial (to allow users to test V4L/DVB drivers on older kernels).

At the -git, all those #if KERNEL_VERSION stuff that are inside Mercurial are stripped.

Cheers,
Mauro

#13 lore raw

Re: [v4l-dvb-maintainer] [PATCH] media: replace remaining __FUNCT ION__ occurences

In reply to Harvey Harrison
Quoted 16 lines · Harvey Harrison
Quoted 14 lines · Michael Krufky

On Fri, Apr 4, 2008 at 11:09 AM, Michael Krufky <[email protected]> Harvey,

I have received your entire patchset. Some patches have already been merged into our development tree, others have been dropped, since some of individual driver maintainers have decided to remove the __FUNCTION__ macro from their source code altogether, rather than accept this change.

I have merged the remaining pending patches into a mercurial tree, hosted on linuxtv.org:

http://linuxtv.org/hg/~mkrufky/function-func

Quoted 9 lines
Quoted 4 lines

Please note that I had to manually apply patches 8, 11 and 13, since you generated your changes against the git repository rather than the official v4l-dvb development repository hosted on linuxtv.org.

I don't know/use mercurial, sorry, I thought git-v4l's devel branch on kernel.org would be a mirror of the development tree...guess I was mistaken

The v4l-dvb git tree is where changesets go before Mauro requests a merge to Linus. This repository is usually months behind the current development tree, and for good reason.

Mauro's 'devel' branch is relatively close to the mercurial repository, however, in the mercurial repository we maintain backwards compatibility that usually goes back at least a few kernel versions. In order to support that compatibility, there are extra #ifdef compiler directives in that source tree, which is stripped away before merging to -git.

When large patches come in based on the git repositories, a large amount of manual application is needed in order to merge properly. This is usually only an issue for large, frivolous coding style changes. Most functional patches never hit this issue.

Quoted 18 lines
Quoted 13 lines

I must stress this -- all v4l-dvb patches, ESPECIALLY codingstyle-cleanups (due to the nature of those patches, touching many many files at once), should always be generated against the v4l-dvb master development repository hosted on linuxtv.org.

Now, I have a question.....

About this change from __FUNCTION__ to __func__ , I understand that this change is being done kernel-wide. At first, I had blindly accepted this change as a kernel-janitor "cleanup", until it was pointed out to me last night, that older compilers do not support __func__. Sure, one can always do the following for compat:

Quoted 4 lines

#ifndef __func__
#define __func__ __FUNCTION__
#endif /* __func__ */

Quoted 6 lines

This is already done in kernel.h, so __func__ is already being passed to any compiler used on the kernel....

/* Trap pasters of __FUNCTION__ at compile-time */ #define __FUNCTION__ (__func__)

You misunderstood me. I was talking about how people can compile the sources using __func__ rather than __FUNCTION__ using older compilers that do not support __func__.

Meanwhile -- you just pointed out this trap, above. If that is already in kernel.h, then why replace all actual occurences of __FUNCTION__ with __func__ across the kernel tree? That trap allows your cleanup to take affect in the compiled binaries, while NOT forcing this change on the subsystem kernel code.

The v4l-dvb tree is used outside of the kernel as well as within the kernel, and we like to support additional configurations that are not necessarily supported in-kernel.

This conversion "cleanup" is starting to sound less and less attractive. Was there ever a discussion & agreement about this on LKML??

Quoted 2 lines
Quoted 2 lines

...but the question is raised, why are we making this change in the first

place?

Quoted 9 lines
Quoted 9 lines

Don't get me wrong -- as I said before, I understand that this change is kernel-wide, and I am not arguing against it. I will continue on to have this merged into 2.6.26. I would just like to see a link that points to a discussion thread on LKML that explains the reasons for this change, and where this change was globally agreed to. Again -- I am not challenging these patches. I merely want to read more information as to why we are making this move.

I'm guessing that this discussion never actually took place?

Quoted 10 lines
Quoted 6 lines

In the meanwhile, below is the checkpatch.pl fallout after applying your __FUNCTION__ to __func__ series. Since you are working on these codingstyle cleanups anyway, I'd imagine that you won't mind fixing these checkpatch.pl "errors" and "warnings" before we merge these changes.

For such a large set in v4l, it's a drastic increase in work to do so in this case as it is a simple sed s/__FUNCTION__/__func__/

Please see my comments at the end of this email.

Quoted 5 lines
Quoted 5 lines

I understand if you don't want to alter code that you may not be directly involved in, but I am sure you will have no trouble at least fixing the "comma after space" and "line over 80 characters" cases.

Quoted 8 lines
Quoted 5 lines

Please generate the additional cleanups against the mercurial tree that I merged your previous series to:

http://linuxtv.org/hg/~mkrufky/function-func

Do you have a git mirror somewhere?

No. A git mirror would not help in this case, since we would need to merge the changes back into the mercurial repository before the changes waiting there go to -git.

Quoted 9 lines
Quoted 6 lines

Also, please generate the codingstyle cleanup patches individually based on the directory structure, just as you did in your last series.

See below for the checkpatch.pl "errors" and "warnings".

I can't say I have much enthusiasm for that, but if you'd really want such a patch, I will try to get to it this week.

It's not that I "really want such a patch" -- rather, I am merely reacting in the same manner that has been done in the past.

For example:

Quite often the case arises where a user reports an OOPS, or some other bug in the current code. A developer will fix the bug, and send in a patch to fix it. The maintainer of our subsystem then proceeds to NACK the bug-fix patch, because it fails checkpatch.pl.

I disagree with this policy, however, this is the policy. I always felt that patches should be small, and only attack one specific item. I have always agreed with akpm's "The Perfect Patch" document, where no two changes should ever appear in the same patch. ie: if there is a codingstyle / whitespace cleanup, it should appear in a separate patch, rather than a patch that fixes a bug or adds new functionality.

Ever since the appearance of checkpatch.pl, now all patches that fix real bugs get nacked unless they themselves pass checkpatch.pl's "requirements". The patch must be re-worked, or an additional patch must be submitted, that removes any codingstyle issue detected by the original patch, even if it is caused by a piece of code that had already existed.

In summary, I as a developer, am made aware of bugs in the kernel, and I like to fix them when I can. When I submit a bug-fix patch that alters a line that has comma's without spaces afterwards, my patch is nacked, until I fix the codingstyle issue as well, even though the codingstyle issue pre-dates my own patch.

If I can't submit a bug-fix without being held up to checkpatch.pl , then those same requirements must be upheld by trivial, frivolous coding style "cleanups" as well. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Harvey, I know you mean well, and I thank you for that. I hope you understand my point of view.

Regards,

Mike

#14 lore raw
In reply to Michael Krufky
Quoted 13 lines · Michael Krufky
Quoted 12 lines · Manu Abraham
Quoted 11 lines · Michael Krufky
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 8 lines
Quoted 5 lines

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

Manu,

Does that mean that you plan to merge multiproto soon? If that's the

I hope to do so, unless there aren't any significant issues. The multiproto tree is at
http://jusst.de/hg/multiproto.

(There's hell a lot of reviewing and testing going on by the testers on the linux-dvb ML, but you might additionally like to check whether any of your devices have any side effects)

Regards,
Manu

#15 lore raw
Quoted 27 lines · On Tue, 04 Mar 2008 14:33:15 +0400 Manu Abraham <[email protected]> wrote:
Quoted 13 lines · Michael Krufky
Quoted 12 lines · Manu Abraham
Quoted 11 lines · Michael Krufky
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 8 lines
Quoted 5 lines

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

Manu,

Does that mean that you plan to merge multiproto soon? If that's the

I hope to do so, unless there aren't any significant issues. The multiproto tree is at
http://jusst.de/hg/multiproto.

Quoted 5 lines

(There's hell a lot of reviewing and testing going on by the testers on the linux-dvb
ML, but you might additionally like to check whether any of your devices have any
side effects)

Maybe the better would be if we merge from multiproto. Then, Harvey can safely generate the __FUNCTION__ changesets.

Manu,

Can I merge it?

Cheers,
Mauro

#16 lore raw
Quoted 31 lines · Mauro Carvalho Chehab
Quoted 20 lines · On Tue, 04 Mar 2008 14:33:15 +0400 Manu Abraham <[email protected]> wrote:
Quoted 19 lines · Michael Krufky
Quoted 11 lines · Manu Abraham
Quoted 10 lines · Michael Krufky
Quoted 4 lines · Harvey Harrison

__FUNCTION__ is gcc-specific, use __func__

  162 files changed, 892 insertions(+), 892 deletions(-)

If we apply this, can it be broken down into several smaller patches? I am in the midst of a large overhaul of the tuning subsystem, and if this all gets applied at once, it will wreck havoc on my pending changesets.

Quoted 5 lines

Please make sure your changes don't conflict with the multiproto tree changes.

Regards,
Manu

Manu,

Quoted 7 lines
Quoted 1 line

Does that mean that you plan to merge multiproto soon? If that's the

I hope to do so, unless there aren't any significant issues. The multiproto tree is at
http://jusst.de/hg/multiproto.

(There's hell a lot of reviewing and testing going on by the testers on the linux-dvb ML, but you might additionally like to check whether any of your devices have any side effects)

Quoted 7 lines

Maybe the better would be if we merge from multiproto. Then, Harvey can safely generate the __FUNCTION__ changesets.

Manu,

Can I merge it?

If you meant to merge the multiproto tree, Not yet.

Regards,
Manu