Skip to content

Commit

Permalink
V4L/DVB (7509): media/dvb/b2c2 replace remaining __FUNCTION__ occurre…
Browse files Browse the repository at this point in the history
…nces

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Harvey Harrison authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 536a0b1 commit 7bca449
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/b2c2/flexcop-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
28 changes: 14 additions & 14 deletions drivers/media/dvb/b2c2/flexcop-sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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;

Expand Down Expand Up @@ -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? */
Expand All @@ -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);
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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);

Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 7bca449

Please sign in to comment.