diff options
author | Joe Perches <joe@perches.com> | 2008-03-21 14:06:25 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-26 00:17:42 -0400 |
commit | c3033b01d763aff572080db09ddcebed115b9cf5 (patch) | |
tree | b75bb33ba85185c9d6775ceafad09a103f643b35 /drivers/net/e1000/e1000_ethtool.c | |
parent | f89e6e3834035c6e8203042f3527931aa7f52496 (diff) |
e1000: Convert boolean_t to bool
On Thu, 2008-03-06 at 10:07 -0800, Kok, Auke wrote:
> send me a patch for e1000 and for ixgb and I'll happily apply those :)
boolean_t to bool
TRUE to true
FALSE to false
comment typo ahread to ahead
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000/e1000_ethtool.c')
-rw-r--r-- | drivers/net/e1000/e1000_ethtool.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index 85e66f4c7886..05e1fb3cf49f 100644 --- a/drivers/net/e1000/e1000_ethtool.c +++ b/drivers/net/e1000/e1000_ethtool.c | |||
@@ -353,7 +353,7 @@ e1000_set_tso(struct net_device *netdev, uint32_t data) | |||
353 | netdev->features &= ~NETIF_F_TSO6; | 353 | netdev->features &= ~NETIF_F_TSO6; |
354 | 354 | ||
355 | DPRINTK(PROBE, INFO, "TSO is %s\n", data ? "Enabled" : "Disabled"); | 355 | DPRINTK(PROBE, INFO, "TSO is %s\n", data ? "Enabled" : "Disabled"); |
356 | adapter->tso_force = TRUE; | 356 | adapter->tso_force = true; |
357 | return 0; | 357 | return 0; |
358 | } | 358 | } |
359 | 359 | ||
@@ -922,7 +922,8 @@ static int | |||
922 | e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data) | 922 | e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data) |
923 | { | 923 | { |
924 | struct net_device *netdev = adapter->netdev; | 924 | struct net_device *netdev = adapter->netdev; |
925 | uint32_t mask, i=0, shared_int = TRUE; | 925 | uint32_t mask, i = 0; |
926 | bool shared_int = true; | ||
926 | uint32_t irq = adapter->pdev->irq; | 927 | uint32_t irq = adapter->pdev->irq; |
927 | 928 | ||
928 | *data = 0; | 929 | *data = 0; |
@@ -931,7 +932,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data) | |||
931 | /* Hook up test interrupt handler just for this test */ | 932 | /* Hook up test interrupt handler just for this test */ |
932 | if (!request_irq(irq, &e1000_test_intr, IRQF_PROBE_SHARED, netdev->name, | 933 | if (!request_irq(irq, &e1000_test_intr, IRQF_PROBE_SHARED, netdev->name, |
933 | netdev)) | 934 | netdev)) |
934 | shared_int = FALSE; | 935 | shared_int = false; |
935 | else if (request_irq(irq, &e1000_test_intr, IRQF_SHARED, | 936 | else if (request_irq(irq, &e1000_test_intr, IRQF_SHARED, |
936 | netdev->name, netdev)) { | 937 | netdev->name, netdev)) { |
937 | *data = 1; | 938 | *data = 1; |
@@ -1295,7 +1296,7 @@ e1000_integrated_phy_loopback(struct e1000_adapter *adapter) | |||
1295 | uint32_t ctrl_reg = 0; | 1296 | uint32_t ctrl_reg = 0; |
1296 | uint32_t stat_reg = 0; | 1297 | uint32_t stat_reg = 0; |
1297 | 1298 | ||
1298 | adapter->hw.autoneg = FALSE; | 1299 | adapter->hw.autoneg = false; |
1299 | 1300 | ||
1300 | if (adapter->hw.phy_type == e1000_phy_m88) { | 1301 | if (adapter->hw.phy_type == e1000_phy_m88) { |
1301 | /* Auto-MDI/MDIX Off */ | 1302 | /* Auto-MDI/MDIX Off */ |
@@ -1473,7 +1474,7 @@ e1000_loopback_cleanup(struct e1000_adapter *adapter) | |||
1473 | case e1000_82545_rev_3: | 1474 | case e1000_82545_rev_3: |
1474 | case e1000_82546_rev_3: | 1475 | case e1000_82546_rev_3: |
1475 | default: | 1476 | default: |
1476 | hw->autoneg = TRUE; | 1477 | hw->autoneg = true; |
1477 | if (hw->phy_type == e1000_phy_gg82563) | 1478 | if (hw->phy_type == e1000_phy_gg82563) |
1478 | e1000_write_phy_reg(hw, | 1479 | e1000_write_phy_reg(hw, |
1479 | GG82563_PHY_KMRN_MODE_CTRL, | 1480 | GG82563_PHY_KMRN_MODE_CTRL, |
@@ -1607,13 +1608,13 @@ e1000_link_test(struct e1000_adapter *adapter, uint64_t *data) | |||
1607 | *data = 0; | 1608 | *data = 0; |
1608 | if (adapter->hw.media_type == e1000_media_type_internal_serdes) { | 1609 | if (adapter->hw.media_type == e1000_media_type_internal_serdes) { |
1609 | int i = 0; | 1610 | int i = 0; |
1610 | adapter->hw.serdes_link_down = TRUE; | 1611 | adapter->hw.serdes_link_down = true; |
1611 | 1612 | ||
1612 | /* On some blade server designs, link establishment | 1613 | /* On some blade server designs, link establishment |
1613 | * could take as long as 2-3 minutes */ | 1614 | * could take as long as 2-3 minutes */ |
1614 | do { | 1615 | do { |
1615 | e1000_check_for_link(&adapter->hw); | 1616 | e1000_check_for_link(&adapter->hw); |
1616 | if (adapter->hw.serdes_link_down == FALSE) | 1617 | if (!adapter->hw.serdes_link_down) |
1617 | return *data; | 1618 | return *data; |
1618 | msleep(20); | 1619 | msleep(20); |
1619 | } while (i++ < 3750); | 1620 | } while (i++ < 3750); |
@@ -1649,7 +1650,7 @@ e1000_diag_test(struct net_device *netdev, | |||
1649 | struct ethtool_test *eth_test, uint64_t *data) | 1650 | struct ethtool_test *eth_test, uint64_t *data) |
1650 | { | 1651 | { |
1651 | struct e1000_adapter *adapter = netdev_priv(netdev); | 1652 | struct e1000_adapter *adapter = netdev_priv(netdev); |
1652 | boolean_t if_running = netif_running(netdev); | 1653 | bool if_running = netif_running(netdev); |
1653 | 1654 | ||
1654 | set_bit(__E1000_TESTING, &adapter->flags); | 1655 | set_bit(__E1000_TESTING, &adapter->flags); |
1655 | if (eth_test->flags == ETH_TEST_FL_OFFLINE) { | 1656 | if (eth_test->flags == ETH_TEST_FL_OFFLINE) { |