Commit 08882d20 authored by Harvey Harrison's avatar Harvey Harrison Committed by Jean Delvare

i2c: Replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent a26c20b1
...@@ -328,7 +328,7 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) ...@@ -328,7 +328,7 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
int i; int i;
int ret; int ret;
dev_dbg(dev->dev, "%s: msgs: %d\n", __FUNCTION__, num); dev_dbg(dev->dev, "%s: msgs: %d\n", __func__, num);
ret = i2c_davinci_wait_bus_not_busy(dev, 1); ret = i2c_davinci_wait_bus_not_busy(dev, 1);
if (ret < 0) { if (ret < 0) {
...@@ -342,7 +342,7 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) ...@@ -342,7 +342,7 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
return ret; return ret;
} }
dev_dbg(dev->dev, "%s:%d ret: %d\n", __FUNCTION__, __LINE__, ret); dev_dbg(dev->dev, "%s:%d ret: %d\n", __func__, __LINE__, ret);
return num; return num;
} }
...@@ -364,7 +364,7 @@ static irqreturn_t i2c_davinci_isr(int this_irq, void *dev_id) ...@@ -364,7 +364,7 @@ static irqreturn_t i2c_davinci_isr(int this_irq, void *dev_id)
u16 w; u16 w;
while ((stat = davinci_i2c_read_reg(dev, DAVINCI_I2C_IVR_REG))) { while ((stat = davinci_i2c_read_reg(dev, DAVINCI_I2C_IVR_REG))) {
dev_dbg(dev->dev, "%s: stat=0x%x\n", __FUNCTION__, stat); dev_dbg(dev->dev, "%s: stat=0x%x\n", __func__, stat);
if (count++ == 100) { if (count++ == 100) {
dev_warn(dev->dev, "Too much work in one IRQ\n"); dev_warn(dev->dev, "Too much work in one IRQ\n");
break; break;
......
...@@ -467,7 +467,7 @@ static enum pmcmsptwi_xfer_result pmcmsptwi_xfer_cmd( ...@@ -467,7 +467,7 @@ static enum pmcmsptwi_xfer_result pmcmsptwi_xfer_cmd(
(cmd->read_len == 0 || cmd->write_len == 0))) { (cmd->read_len == 0 || cmd->write_len == 0))) {
dev_err(&pmcmsptwi_adapter.dev, dev_err(&pmcmsptwi_adapter.dev,
"%s: Cannot transfer less than 1 byte\n", "%s: Cannot transfer less than 1 byte\n",
__FUNCTION__); __func__);
return -EINVAL; return -EINVAL;
} }
...@@ -475,7 +475,7 @@ static enum pmcmsptwi_xfer_result pmcmsptwi_xfer_cmd( ...@@ -475,7 +475,7 @@ static enum pmcmsptwi_xfer_result pmcmsptwi_xfer_cmd(
cmd->write_len > MSP_MAX_BYTES_PER_RW) { cmd->write_len > MSP_MAX_BYTES_PER_RW) {
dev_err(&pmcmsptwi_adapter.dev, dev_err(&pmcmsptwi_adapter.dev,
"%s: Cannot transfer more than %d bytes\n", "%s: Cannot transfer more than %d bytes\n",
__FUNCTION__, MSP_MAX_BYTES_PER_RW); __func__, MSP_MAX_BYTES_PER_RW);
return -EINVAL; return -EINVAL;
} }
......
...@@ -76,7 +76,7 @@ static int i2c_pnx_start(unsigned char slave_addr, struct i2c_adapter *adap) ...@@ -76,7 +76,7 @@ static int i2c_pnx_start(unsigned char slave_addr, struct i2c_adapter *adap)
{ {
struct i2c_pnx_algo_data *alg_data = adap->algo_data; struct i2c_pnx_algo_data *alg_data = adap->algo_data;
dev_dbg(&adap->dev, "%s(): addr 0x%x mode %d\n", __FUNCTION__, dev_dbg(&adap->dev, "%s(): addr 0x%x mode %d\n", __func__,
slave_addr, alg_data->mif.mode); slave_addr, alg_data->mif.mode);
/* Check for 7 bit slave addresses only */ /* Check for 7 bit slave addresses only */
...@@ -110,14 +110,14 @@ static int i2c_pnx_start(unsigned char slave_addr, struct i2c_adapter *adap) ...@@ -110,14 +110,14 @@ static int i2c_pnx_start(unsigned char slave_addr, struct i2c_adapter *adap)
iowrite32(ioread32(I2C_REG_STS(alg_data)) | mstatus_tdi | mstatus_afi, iowrite32(ioread32(I2C_REG_STS(alg_data)) | mstatus_tdi | mstatus_afi,
I2C_REG_STS(alg_data)); I2C_REG_STS(alg_data));
dev_dbg(&adap->dev, "%s(): sending %#x\n", __FUNCTION__, dev_dbg(&adap->dev, "%s(): sending %#x\n", __func__,
(slave_addr << 1) | start_bit | alg_data->mif.mode); (slave_addr << 1) | start_bit | alg_data->mif.mode);
/* Write the slave address, START bit and R/W bit */ /* Write the slave address, START bit and R/W bit */
iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode,
I2C_REG_TX(alg_data)); I2C_REG_TX(alg_data));
dev_dbg(&adap->dev, "%s(): exit\n", __FUNCTION__); dev_dbg(&adap->dev, "%s(): exit\n", __func__);
return 0; return 0;
} }
...@@ -135,7 +135,7 @@ static void i2c_pnx_stop(struct i2c_adapter *adap) ...@@ -135,7 +135,7 @@ static void i2c_pnx_stop(struct i2c_adapter *adap)
long timeout = 1000; long timeout = 1000;
dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
/* Write a STOP bit to TX FIFO */ /* Write a STOP bit to TX FIFO */
iowrite32(0xff | stop_bit, I2C_REG_TX(alg_data)); iowrite32(0xff | stop_bit, I2C_REG_TX(alg_data));
...@@ -149,7 +149,7 @@ static void i2c_pnx_stop(struct i2c_adapter *adap) ...@@ -149,7 +149,7 @@ static void i2c_pnx_stop(struct i2c_adapter *adap)
} }
dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
} }
/** /**
...@@ -164,7 +164,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap) ...@@ -164,7 +164,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap)
u32 val; u32 val;
dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
if (alg_data->mif.len > 0) { if (alg_data->mif.len > 0) {
/* We still have something to talk about... */ /* We still have something to talk about... */
...@@ -179,7 +179,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap) ...@@ -179,7 +179,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap)
alg_data->mif.len--; alg_data->mif.len--;
iowrite32(val, I2C_REG_TX(alg_data)); iowrite32(val, I2C_REG_TX(alg_data));
dev_dbg(&adap->dev, "%s(): xmit %#x [%d]\n", __FUNCTION__, dev_dbg(&adap->dev, "%s(): xmit %#x [%d]\n", __func__,
val, alg_data->mif.len + 1); val, alg_data->mif.len + 1);
if (alg_data->mif.len == 0) { if (alg_data->mif.len == 0) {
...@@ -197,7 +197,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap) ...@@ -197,7 +197,7 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap)
del_timer_sync(&alg_data->mif.timer); del_timer_sync(&alg_data->mif.timer);
dev_dbg(&adap->dev, "%s(): Waking up xfer routine.\n", dev_dbg(&adap->dev, "%s(): Waking up xfer routine.\n",
__FUNCTION__); __func__);
complete(&alg_data->mif.complete); complete(&alg_data->mif.complete);
} }
...@@ -213,13 +213,13 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap) ...@@ -213,13 +213,13 @@ static int i2c_pnx_master_xmit(struct i2c_adapter *adap)
/* Stop timer. */ /* Stop timer. */
del_timer_sync(&alg_data->mif.timer); del_timer_sync(&alg_data->mif.timer);
dev_dbg(&adap->dev, "%s(): Waking up xfer routine after " dev_dbg(&adap->dev, "%s(): Waking up xfer routine after "
"zero-xfer.\n", __FUNCTION__); "zero-xfer.\n", __func__);
complete(&alg_data->mif.complete); complete(&alg_data->mif.complete);
} }
dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
return 0; return 0;
} }
...@@ -237,14 +237,14 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap) ...@@ -237,14 +237,14 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap)
u32 ctl = 0; u32 ctl = 0;
dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): entering: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
/* Check, whether there is already data, /* Check, whether there is already data,
* or we didn't 'ask' for it yet. * or we didn't 'ask' for it yet.
*/ */
if (ioread32(I2C_REG_STS(alg_data)) & mstatus_rfe) { if (ioread32(I2C_REG_STS(alg_data)) & mstatus_rfe) {
dev_dbg(&adap->dev, "%s(): Write dummy data to fill " dev_dbg(&adap->dev, "%s(): Write dummy data to fill "
"Rx-fifo...\n", __FUNCTION__); "Rx-fifo...\n", __func__);
if (alg_data->mif.len == 1) { if (alg_data->mif.len == 1) {
/* Last byte, do not acknowledge next rcv. */ /* Last byte, do not acknowledge next rcv. */
...@@ -276,7 +276,7 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap) ...@@ -276,7 +276,7 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap)
if (alg_data->mif.len > 0) { if (alg_data->mif.len > 0) {
val = ioread32(I2C_REG_RX(alg_data)); val = ioread32(I2C_REG_RX(alg_data));
*alg_data->mif.buf++ = (u8) (val & 0xff); *alg_data->mif.buf++ = (u8) (val & 0xff);
dev_dbg(&adap->dev, "%s(): rcv 0x%x [%d]\n", __FUNCTION__, val, dev_dbg(&adap->dev, "%s(): rcv 0x%x [%d]\n", __func__, val,
alg_data->mif.len); alg_data->mif.len);
alg_data->mif.len--; alg_data->mif.len--;
...@@ -300,7 +300,7 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap) ...@@ -300,7 +300,7 @@ static int i2c_pnx_master_rcv(struct i2c_adapter *adap)
} }
dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n", dev_dbg(&adap->dev, "%s(): exiting: stat = %04x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
return 0; return 0;
} }
...@@ -312,7 +312,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id) ...@@ -312,7 +312,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id)
struct i2c_pnx_algo_data *alg_data = adap->algo_data; struct i2c_pnx_algo_data *alg_data = adap->algo_data;
dev_dbg(&adap->dev, "%s(): mstat = %x mctrl = %x, mode = %d\n", dev_dbg(&adap->dev, "%s(): mstat = %x mctrl = %x, mode = %d\n",
__FUNCTION__, __func__,
ioread32(I2C_REG_STS(alg_data)), ioread32(I2C_REG_STS(alg_data)),
ioread32(I2C_REG_CTL(alg_data)), ioread32(I2C_REG_CTL(alg_data)),
alg_data->mif.mode); alg_data->mif.mode);
...@@ -336,7 +336,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id) ...@@ -336,7 +336,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id)
/* Slave did not acknowledge, generate a STOP */ /* Slave did not acknowledge, generate a STOP */
dev_dbg(&adap->dev, "%s(): " dev_dbg(&adap->dev, "%s(): "
"Slave did not acknowledge, generating a STOP.\n", "Slave did not acknowledge, generating a STOP.\n",
__FUNCTION__); __func__);
i2c_pnx_stop(adap); i2c_pnx_stop(adap);
/* Disable master interrupts. */ /* Disable master interrupts. */
...@@ -375,7 +375,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id) ...@@ -375,7 +375,7 @@ static irqreturn_t i2c_pnx_interrupt(int irq, void *dev_id)
iowrite32(stat | mstatus_tdi | mstatus_afi, I2C_REG_STS(alg_data)); iowrite32(stat | mstatus_tdi | mstatus_afi, I2C_REG_STS(alg_data));
dev_dbg(&adap->dev, "%s(): exiting, stat = %x ctrl = %x.\n", dev_dbg(&adap->dev, "%s(): exiting, stat = %x ctrl = %x.\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data)), __func__, ioread32(I2C_REG_STS(alg_data)),
ioread32(I2C_REG_CTL(alg_data))); ioread32(I2C_REG_CTL(alg_data)));
return IRQ_HANDLED; return IRQ_HANDLED;
...@@ -447,7 +447,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) ...@@ -447,7 +447,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
u32 stat = ioread32(I2C_REG_STS(alg_data)); u32 stat = ioread32(I2C_REG_STS(alg_data));
dev_dbg(&adap->dev, "%s(): entering: %d messages, stat = %04x.\n", dev_dbg(&adap->dev, "%s(): entering: %d messages, stat = %04x.\n",
__FUNCTION__, num, ioread32(I2C_REG_STS(alg_data))); __func__, num, ioread32(I2C_REG_STS(alg_data)));
bus_reset_if_active(adap); bus_reset_if_active(adap);
...@@ -473,7 +473,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) ...@@ -473,7 +473,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
alg_data->mif.ret = 0; alg_data->mif.ret = 0;
alg_data->last = (i == num - 1); alg_data->last = (i == num - 1);
dev_dbg(&adap->dev, "%s(): mode %d, %d bytes\n", __FUNCTION__, dev_dbg(&adap->dev, "%s(): mode %d, %d bytes\n", __func__,
alg_data->mif.mode, alg_data->mif.mode,
alg_data->mif.len); alg_data->mif.len);
...@@ -498,7 +498,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) ...@@ -498,7 +498,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
if (!(rc = alg_data->mif.ret)) if (!(rc = alg_data->mif.ret))
completed++; completed++;
dev_dbg(&adap->dev, "%s(): Complete, return code = %d.\n", dev_dbg(&adap->dev, "%s(): Complete, return code = %d.\n",
__FUNCTION__, rc); __func__, rc);
/* Clear TDI and AFI bits in case they are set. */ /* Clear TDI and AFI bits in case they are set. */
if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_tdi) { if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_tdi) {
...@@ -522,7 +522,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) ...@@ -522,7 +522,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
alg_data->mif.len = 0; alg_data->mif.len = 0;
dev_dbg(&adap->dev, "%s(): exiting, stat = %x\n", dev_dbg(&adap->dev, "%s(): exiting, stat = %x\n",
__FUNCTION__, ioread32(I2C_REG_STS(alg_data))); __func__, ioread32(I2C_REG_STS(alg_data)));
if (completed != num) if (completed != num)
return ((rc < 0) ? rc : -EREMOTEIO); return ((rc < 0) ? rc : -EREMOTEIO);
...@@ -563,7 +563,7 @@ static int __devinit i2c_pnx_probe(struct platform_device *pdev) ...@@ -563,7 +563,7 @@ static int __devinit i2c_pnx_probe(struct platform_device *pdev)
if (!i2c_pnx || !i2c_pnx->adapter) { if (!i2c_pnx || !i2c_pnx->adapter) {
dev_err(&pdev->dev, "%s: no platform data supplied\n", dev_err(&pdev->dev, "%s: no platform data supplied\n",
__FUNCTION__); __func__);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} }
......
...@@ -155,7 +155,7 @@ static void i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname) ...@@ -155,7 +155,7 @@ static void i2c_pxa_show_state(struct pxa_i2c *i2c, int lno, const char *fname)
readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c)));
} }
#define show_state(i2c) i2c_pxa_show_state(i2c, __LINE__, __FUNCTION__) #define show_state(i2c) i2c_pxa_show_state(i2c, __LINE__, __func__)
#else #else
#define i2c_debug 0 #define i2c_debug 0
......
...@@ -276,12 +276,12 @@ static int i2s_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat) ...@@ -276,12 +276,12 @@ static int i2s_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
switch (i2c->state) { switch (i2c->state) {
case STATE_IDLE: case STATE_IDLE:
dev_err(i2c->dev, "%s: called in STATE_IDLE\n", __FUNCTION__); dev_err(i2c->dev, "%s: called in STATE_IDLE\n", __func__);
goto out; goto out;
break; break;
case STATE_STOP: case STATE_STOP:
dev_err(i2c->dev, "%s: called in STATE_STOP\n", __FUNCTION__); dev_err(i2c->dev, "%s: called in STATE_STOP\n", __func__);
s3c24xx_i2c_disable_irq(i2c); s3c24xx_i2c_disable_irq(i2c);
goto out_ack; goto out_ack;
......
...@@ -658,7 +658,7 @@ static void otg_update_isp(struct isp1301 *isp) ...@@ -658,7 +658,7 @@ static void otg_update_isp(struct isp1301 *isp)
OTG_CTRL_REG |= OTG_PULLUP; OTG_CTRL_REG |= OTG_PULLUP;
} }
check_state(isp, __FUNCTION__); check_state(isp, __func__);
dump_regs(isp, "otg->isp1301"); dump_regs(isp, "otg->isp1301");
} }
...@@ -782,7 +782,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp) ...@@ -782,7 +782,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp)
if (otg_ctrl & OTG_DRIVER_SEL) { if (otg_ctrl & OTG_DRIVER_SEL) {
switch (isp->otg.state) { switch (isp->otg.state) {
case OTG_STATE_A_IDLE: case OTG_STATE_A_IDLE:
b_idle(isp, __FUNCTION__); b_idle(isp, __func__);
break; break;
default: default:
break; break;
...@@ -826,7 +826,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp) ...@@ -826,7 +826,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp)
isp->otg.host->otg_port); isp->otg.host->otg_port);
} }
check_state(isp, __FUNCTION__); check_state(isp, __func__);
return ret; return ret;
} }
...@@ -837,7 +837,7 @@ static int otg_init(struct isp1301 *isp) ...@@ -837,7 +837,7 @@ static int otg_init(struct isp1301 *isp)
if (!otg_dev) if (!otg_dev)
return -ENODEV; return -ENODEV;
dump_regs(isp, __FUNCTION__); dump_regs(isp, __func__);
/* some of these values are board-specific... */ /* some of these values are board-specific... */
OTG_SYSCON_2_REG |= OTG_EN OTG_SYSCON_2_REG |= OTG_EN
/* for B-device: */ /* for B-device: */
...@@ -853,9 +853,9 @@ static int otg_init(struct isp1301 *isp) ...@@ -853,9 +853,9 @@ static int otg_init(struct isp1301 *isp)
update_otg1(isp, isp1301_get_u8(isp, ISP1301_INTERRUPT_SOURCE)); update_otg1(isp, isp1301_get_u8(isp, ISP1301_INTERRUPT_SOURCE));
update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS));
check_state(isp, __FUNCTION__); check_state(isp, __func__);
pr_debug("otg: %s, %s %06x\n", pr_debug("otg: %s, %s %06x\n",
state_name(isp), __FUNCTION__, OTG_CTRL_REG); state_name(isp), __func__, OTG_CTRL_REG);
OTG_IRQ_EN_REG = DRIVER_SWITCH | OPRT_CHG OTG_IRQ_EN_REG = DRIVER_SWITCH | OPRT_CHG
| B_SRP_TMROUT | B_HNP_FAIL | B_SRP_TMROUT | B_HNP_FAIL
...@@ -1041,11 +1041,11 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat) ...@@ -1041,11 +1041,11 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat)
OTG1_DP_PULLDOWN); OTG1_DP_PULLDOWN);
isp1301_clear_bits(isp, ISP1301_OTG_CONTROL_1, isp1301_clear_bits(isp, ISP1301_OTG_CONTROL_1,
OTG1_DP_PULLUP); OTG1_DP_PULLUP);
dump_regs(isp, __FUNCTION__); dump_regs(isp, __func__);
#endif #endif
/* FALLTHROUGH */ /* FALLTHROUGH */
case OTG_STATE_B_SRP_INIT: case OTG_STATE_B_SRP_INIT:
b_idle(isp, __FUNCTION__); b_idle(isp, __func__);
OTG_CTRL_REG &= OTG_CTRL_REG & OTG_XCEIV_OUTPUTS; OTG_CTRL_REG &= OTG_CTRL_REG & OTG_XCEIV_OUTPUTS;
/* FALLTHROUGH */ /* FALLTHROUGH */
case OTG_STATE_B_IDLE: case OTG_STATE_B_IDLE:
...@@ -1077,7 +1077,7 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat) ...@@ -1077,7 +1077,7 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat)
*/ */
update_otg1(isp, isp_stat); update_otg1(isp, isp_stat);
update_otg2(isp, isp_bstat); update_otg2(isp, isp_bstat);
check_state(isp, __FUNCTION__); check_state(isp, __func__);
#endif #endif
dump_regs(isp, "isp1301->otg"); dump_regs(isp, "isp1301->otg");
...@@ -1310,7 +1310,7 @@ isp1301_set_host(struct otg_transceiver *otg, struct usb_bus *host) ...@@ -1310,7 +1310,7 @@ isp1301_set_host(struct otg_transceiver *otg, struct usb_bus *host)
*/ */
isp1301_set_bits(isp, ISP1301_OTG_CONTROL_1, OTG1_VBUS_DRV); isp1301_set_bits(isp, ISP1301_OTG_CONTROL_1, OTG1_VBUS_DRV);
dump_regs(isp, __FUNCTION__); dump_regs(isp, __func__);
return 0; return 0;
...@@ -1365,7 +1365,7 @@ isp1301_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *gadget) ...@@ -1365,7 +1365,7 @@ isp1301_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *gadget)
isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING, isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING,
INTR_VBUS_VLD); INTR_VBUS_VLD);
dev_info(&isp->client.dev, "B-Peripheral sessions ok\n"); dev_info(&isp->client.dev, "B-Peripheral sessions ok\n");
dump_regs(isp, __FUNCTION__); dump_regs(isp, __func__);
/* If this has a Mini-AB connector, this mode is highly /* If this has a Mini-AB connector, this mode is highly
* nonstandard ... but can be handy for testing, so long * nonstandard ... but can be handy for testing, so long
...@@ -1416,7 +1416,7 @@ isp1301_start_srp(struct otg_transceiver *dev) ...@@ -1416,7 +1416,7 @@ isp1301_start_srp(struct otg_transceiver *dev)
pr_debug("otg: SRP, %s ... %06x\n", state_name(isp), OTG_CTRL_REG); pr_debug("otg: SRP, %s ... %06x\n", state_name(isp), OTG_CTRL_REG);
#ifdef CONFIG_USB_OTG #ifdef CONFIG_USB_OTG
check_state(isp, __FUNCTION__); check_state(isp, __func__);
#endif #endif
return 0; return 0;
} }
...@@ -1463,7 +1463,7 @@ isp1301_start_hnp(struct otg_transceiver *dev) ...@@ -1463,7 +1463,7 @@ isp1301_start_hnp(struct otg_transceiver *dev)
} }
pr_debug("otg: HNP %s, %06x ...\n", pr_debug("otg: HNP %s, %06x ...\n",
state_name(isp), OTG_CTRL_REG); state_name(isp), OTG_CTRL_REG);
check_state(isp, __FUNCTION__); check_state(isp, __func__);
return 0; return 0;
#else #else
/* srp-only */ /* srp-only */
...@@ -1601,7 +1601,7 @@ static int isp1301_probe(struct i2c_adapter *bus, int address, int kind) ...@@ -1601,7 +1601,7 @@ static int isp1301_probe(struct i2c_adapter *bus, int address, int kind)
update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS));
#endif #endif
dump_regs(isp, __FUNCTION__); dump_regs(isp, __func__);
#ifdef VERBOSE #ifdef VERBOSE
mod_timer(&isp->timer, jiffies + TIMER_JIFFIES); mod_timer(&isp->timer, jiffies + TIMER_JIFFIES);
......
...@@ -1506,7 +1506,7 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter * adapter, u16 addr, ...@@ -1506,7 +1506,7 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter * adapter, u16 addr,
read_write = I2C_SMBUS_READ; read_write = I2C_SMBUS_READ;
if (data->block[0] > I2C_SMBUS_BLOCK_MAX) { if (data->block[0] > I2C_SMBUS_BLOCK_MAX) {
dev_err(&adapter->dev, "%s called with invalid " dev_err(&adapter->dev, "%s called with invalid "
"block proc call size (%d)\n", __FUNCTION__, "block proc call size (%d)\n", __func__,
data->block[0]); data->block[0]);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment