diff options
| author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-22 16:16:47 -0400 |
|---|---|---|
| committer | Jean Delvare <khali@hyperion.delvare> | 2008-04-22 16:16:47 -0400 |
| commit | 08882d20932224d5c4500a855a2f4b1216e5f836 (patch) | |
| tree | b877739c8bd1ce43cc25778ff685bf6fad56dc2e /drivers/i2c/chips | |
| parent | a26c20b1fa6d16fd3c402785b943a5e915eda30a (diff) | |
i2c: Replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/chips')
| -rw-r--r-- | drivers/i2c/chips/isp1301_omap.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/i2c/chips/isp1301_omap.c b/drivers/i2c/chips/isp1301_omap.c index 2a3160153f54..b1b45dddb17e 100644 --- a/drivers/i2c/chips/isp1301_omap.c +++ b/drivers/i2c/chips/isp1301_omap.c | |||
| @@ -658,7 +658,7 @@ pulldown: | |||
| 658 | OTG_CTRL_REG |= OTG_PULLUP; | 658 | OTG_CTRL_REG |= OTG_PULLUP; |
| 659 | } | 659 | } |
| 660 | 660 | ||
| 661 | check_state(isp, __FUNCTION__); | 661 | check_state(isp, __func__); |
| 662 | dump_regs(isp, "otg->isp1301"); | 662 | dump_regs(isp, "otg->isp1301"); |
| 663 | } | 663 | } |
| 664 | 664 | ||
| @@ -782,7 +782,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp) | |||
| 782 | if (otg_ctrl & OTG_DRIVER_SEL) { | 782 | if (otg_ctrl & OTG_DRIVER_SEL) { |
| 783 | switch (isp->otg.state) { | 783 | switch (isp->otg.state) { |
| 784 | case OTG_STATE_A_IDLE: | 784 | case OTG_STATE_A_IDLE: |
| 785 | b_idle(isp, __FUNCTION__); | 785 | b_idle(isp, __func__); |
| 786 | break; | 786 | break; |
| 787 | default: | 787 | default: |
| 788 | break; | 788 | break; |
| @@ -826,7 +826,7 @@ static irqreturn_t omap_otg_irq(int irq, void *_isp) | |||
| 826 | isp->otg.host->otg_port); | 826 | isp->otg.host->otg_port); |
| 827 | } | 827 | } |
| 828 | 828 | ||
| 829 | check_state(isp, __FUNCTION__); | 829 | check_state(isp, __func__); |
| 830 | return ret; | 830 | return ret; |
| 831 | } | 831 | } |
| 832 | 832 | ||
| @@ -837,7 +837,7 @@ static int otg_init(struct isp1301 *isp) | |||
| 837 | if (!otg_dev) | 837 | if (!otg_dev) |
| 838 | return -ENODEV; | 838 | return -ENODEV; |
| 839 | 839 | ||
| 840 | dump_regs(isp, __FUNCTION__); | 840 | dump_regs(isp, __func__); |
| 841 | /* some of these values are board-specific... */ | 841 | /* some of these values are board-specific... */ |
| 842 | OTG_SYSCON_2_REG |= OTG_EN | 842 | OTG_SYSCON_2_REG |= OTG_EN |
| 843 | /* for B-device: */ | 843 | /* for B-device: */ |
| @@ -853,9 +853,9 @@ static int otg_init(struct isp1301 *isp) | |||
| 853 | update_otg1(isp, isp1301_get_u8(isp, ISP1301_INTERRUPT_SOURCE)); | 853 | update_otg1(isp, isp1301_get_u8(isp, ISP1301_INTERRUPT_SOURCE)); |
| 854 | update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); | 854 | update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); |
| 855 | 855 | ||
| 856 | check_state(isp, __FUNCTION__); | 856 | check_state(isp, __func__); |
| 857 | pr_debug("otg: %s, %s %06x\n", | 857 | pr_debug("otg: %s, %s %06x\n", |
| 858 | state_name(isp), __FUNCTION__, OTG_CTRL_REG); | 858 | state_name(isp), __func__, OTG_CTRL_REG); |
| 859 | 859 | ||
| 860 | OTG_IRQ_EN_REG = DRIVER_SWITCH | OPRT_CHG | 860 | OTG_IRQ_EN_REG = DRIVER_SWITCH | OPRT_CHG |
| 861 | | B_SRP_TMROUT | B_HNP_FAIL | 861 | | B_SRP_TMROUT | B_HNP_FAIL |
| @@ -1041,11 +1041,11 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat) | |||
| 1041 | OTG1_DP_PULLDOWN); | 1041 | OTG1_DP_PULLDOWN); |
| 1042 | isp1301_clear_bits(isp, ISP1301_OTG_CONTROL_1, | 1042 | isp1301_clear_bits(isp, ISP1301_OTG_CONTROL_1, |
| 1043 | OTG1_DP_PULLUP); | 1043 | OTG1_DP_PULLUP); |
| 1044 | dump_regs(isp, __FUNCTION__); | 1044 | dump_regs(isp, __func__); |
| 1045 | #endif | 1045 | #endif |
| 1046 | /* FALLTHROUGH */ | 1046 | /* FALLTHROUGH */ |
| 1047 | case OTG_STATE_B_SRP_INIT: | 1047 | case OTG_STATE_B_SRP_INIT: |
| 1048 | b_idle(isp, __FUNCTION__); | 1048 | b_idle(isp, __func__); |
| 1049 | OTG_CTRL_REG &= OTG_CTRL_REG & OTG_XCEIV_OUTPUTS; | 1049 | OTG_CTRL_REG &= OTG_CTRL_REG & OTG_XCEIV_OUTPUTS; |
| 1050 | /* FALLTHROUGH */ | 1050 | /* FALLTHROUGH */ |
| 1051 | case OTG_STATE_B_IDLE: | 1051 | case OTG_STATE_B_IDLE: |
| @@ -1077,7 +1077,7 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat) | |||
| 1077 | */ | 1077 | */ |
| 1078 | update_otg1(isp, isp_stat); | 1078 | update_otg1(isp, isp_stat); |
| 1079 | update_otg2(isp, isp_bstat); | 1079 | update_otg2(isp, isp_bstat); |
| 1080 | check_state(isp, __FUNCTION__); | 1080 | check_state(isp, __func__); |
| 1081 | #endif | 1081 | #endif |
| 1082 | 1082 | ||
| 1083 | dump_regs(isp, "isp1301->otg"); | 1083 | dump_regs(isp, "isp1301->otg"); |
| @@ -1310,7 +1310,7 @@ isp1301_set_host(struct otg_transceiver *otg, struct usb_bus *host) | |||
| 1310 | */ | 1310 | */ |
| 1311 | isp1301_set_bits(isp, ISP1301_OTG_CONTROL_1, OTG1_VBUS_DRV); | 1311 | isp1301_set_bits(isp, ISP1301_OTG_CONTROL_1, OTG1_VBUS_DRV); |
| 1312 | 1312 | ||
| 1313 | dump_regs(isp, __FUNCTION__); | 1313 | dump_regs(isp, __func__); |
| 1314 | 1314 | ||
| 1315 | return 0; | 1315 | return 0; |
| 1316 | 1316 | ||
| @@ -1365,7 +1365,7 @@ isp1301_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *gadget) | |||
| 1365 | isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING, | 1365 | isp1301_set_bits(isp, ISP1301_INTERRUPT_FALLING, |
| 1366 | INTR_VBUS_VLD); | 1366 | INTR_VBUS_VLD); |
| 1367 | dev_info(&isp->client.dev, "B-Peripheral sessions ok\n"); | 1367 | dev_info(&isp->client.dev, "B-Peripheral sessions ok\n"); |
| 1368 | dump_regs(isp, __FUNCTION__); | 1368 | dump_regs(isp, __func__); |
| 1369 | 1369 | ||
| 1370 | /* If this has a Mini-AB connector, this mode is highly | 1370 | /* If this has a Mini-AB connector, this mode is highly |
| 1371 | * nonstandard ... but can be handy for testing, so long | 1371 | * nonstandard ... but can be handy for testing, so long |
| @@ -1416,7 +1416,7 @@ isp1301_start_srp(struct otg_transceiver *dev) | |||
| 1416 | 1416 | ||
| 1417 | pr_debug("otg: SRP, %s ... %06x\n", state_name(isp), OTG_CTRL_REG); | 1417 | pr_debug("otg: SRP, %s ... %06x\n", state_name(isp), OTG_CTRL_REG); |
| 1418 | #ifdef CONFIG_USB_OTG | 1418 | #ifdef CONFIG_USB_OTG |
| 1419 | check_state(isp, __FUNCTION__); | 1419 | check_state(isp, __func__); |
| 1420 | #endif | 1420 | #endif |
| 1421 | return 0; | 1421 | return 0; |
| 1422 | } | 1422 | } |
| @@ -1463,7 +1463,7 @@ isp1301_start_hnp(struct otg_transceiver *dev) | |||
| 1463 | } | 1463 | } |
| 1464 | pr_debug("otg: HNP %s, %06x ...\n", | 1464 | pr_debug("otg: HNP %s, %06x ...\n", |
| 1465 | state_name(isp), OTG_CTRL_REG); | 1465 | state_name(isp), OTG_CTRL_REG); |
| 1466 | check_state(isp, __FUNCTION__); | 1466 | check_state(isp, __func__); |
| 1467 | return 0; | 1467 | return 0; |
| 1468 | #else | 1468 | #else |
| 1469 | /* srp-only */ | 1469 | /* srp-only */ |
| @@ -1601,7 +1601,7 @@ fail2: | |||
| 1601 | update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); | 1601 | update_otg2(isp, isp1301_get_u8(isp, ISP1301_OTG_STATUS)); |
| 1602 | #endif | 1602 | #endif |
| 1603 | 1603 | ||
| 1604 | dump_regs(isp, __FUNCTION__); | 1604 | dump_regs(isp, __func__); |
| 1605 | 1605 | ||
| 1606 | #ifdef VERBOSE | 1606 | #ifdef VERBOSE |
| 1607 | mod_timer(&isp->timer, jiffies + TIMER_JIFFIES); | 1607 | mod_timer(&isp->timer, jiffies + TIMER_JIFFIES); |
