sfc: Fix some formatting errors reported by checkpatch
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 5 Jan 2012 17:19:45 +0000 (17:19 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 5 Jan 2012 18:44:49 +0000 (18:44 +0000)
Fix the following errors and warnings:

ERROR: trailing whitespace
ERROR: spaces required around that '=' (ctx:VxV)
WARNING: please, no space before tabs

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
12 files changed:
drivers/net/ethernet/sfc/bitfield.h
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/falcon_xmac.c
drivers/net/ethernet/sfc/mcdi_mac.c
drivers/net/ethernet/sfc/mcdi_phy.c
drivers/net/ethernet/sfc/mdio_10g.c
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/qt202x_phy.c
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/spi.h
drivers/net/ethernet/sfc/tenxpress.c

index 098ac2ad757d717aec1b04aa3ee8bec9f35e12f7..a2a9f40b90cfd85e6c2c8d6bcbe2ad40e64113d2 100644 (file)
@@ -448,40 +448,40 @@ typedef union efx_oword {
        EFX_INSERT32(min, max, low, high, EFX_MASK32(high + 1 - low))
 
 #define EFX_SET_OWORD64(oword, low, high, value) do {                  \
-       (oword).u64[0] = (((oword).u64[0]                               \
+       (oword).u64[0] = (((oword).u64[0]                               \
                           & ~EFX_INPLACE_MASK64(0,  63, low, high))    \
                          | EFX_INSERT64(0,  63, low, high, value));    \
-       (oword).u64[1] = (((oword).u64[1]                               \
+       (oword).u64[1] = (((oword).u64[1]                               \
                           & ~EFX_INPLACE_MASK64(64, 127, low, high))   \
                          | EFX_INSERT64(64, 127, low, high, value));   \
        } while (0)
 
 #define EFX_SET_QWORD64(qword, low, high, value) do {                  \
-       (qword).u64[0] = (((qword).u64[0]                               \
+       (qword).u64[0] = (((qword).u64[0]                               \
                           & ~EFX_INPLACE_MASK64(0, 63, low, high))     \
                          | EFX_INSERT64(0, 63, low, high, value));     \
        } while (0)
 
 #define EFX_SET_OWORD32(oword, low, high, value) do {                  \
-       (oword).u32[0] = (((oword).u32[0]                               \
+       (oword).u32[0] = (((oword).u32[0]                               \
                           & ~EFX_INPLACE_MASK32(0, 31, low, high))     \
                          | EFX_INSERT32(0, 31, low, high, value));     \
-       (oword).u32[1] = (((oword).u32[1]                               \
+       (oword).u32[1] = (((oword).u32[1]                               \
                           & ~EFX_INPLACE_MASK32(32, 63, low, high))    \
                          | EFX_INSERT32(32, 63, low, high, value));    \
-       (oword).u32[2] = (((oword).u32[2]                               \
+       (oword).u32[2] = (((oword).u32[2]                               \
                           & ~EFX_INPLACE_MASK32(64, 95, low, high))    \
                          | EFX_INSERT32(64, 95, low, high, value));    \
-       (oword).u32[3] = (((oword).u32[3]                               \
+       (oword).u32[3] = (((oword).u32[3]                               \
                           & ~EFX_INPLACE_MASK32(96, 127, low, high))   \
                          | EFX_INSERT32(96, 127, low, high, value));   \
        } while (0)
 
 #define EFX_SET_QWORD32(qword, low, high, value) do {                  \
-       (qword).u32[0] = (((qword).u32[0]                               \
+       (qword).u32[0] = (((qword).u32[0]                               \
                           & ~EFX_INPLACE_MASK32(0, 31, low, high))     \
                          | EFX_INSERT32(0, 31, low, high, value));     \
-       (qword).u32[1] = (((qword).u32[1]                               \
+       (qword).u32[1] = (((qword).u32[1]                               \
                           & ~EFX_INPLACE_MASK32(32, 63, low, high))    \
                          | EFX_INSERT32(32, 63, low, high, value));    \
        } while (0)
index e43702f33b62932ace48dd4c613f34c497c20944..11cc585c36a4b88cfa0d06e3194ea5a53a91828c 100644 (file)
@@ -44,9 +44,9 @@ const char *efx_loopback_mode_names[] = {
        [LOOPBACK_GMAC]         = "GMAC",
        [LOOPBACK_XGMII]        = "XGMII",
        [LOOPBACK_XGXS]         = "XGXS",
-       [LOOPBACK_XAUI]         = "XAUI",
-       [LOOPBACK_GMII]         = "GMII",
-       [LOOPBACK_SGMII]        = "SGMII",
+       [LOOPBACK_XAUI]         = "XAUI",
+       [LOOPBACK_GMII]         = "GMII",
+       [LOOPBACK_SGMII]        = "SGMII",
        [LOOPBACK_XGBR]         = "XGBR",
        [LOOPBACK_XFI]          = "XFI",
        [LOOPBACK_XAUI_FAR]     = "XAUI_FAR",
@@ -55,17 +55,17 @@ const char *efx_loopback_mode_names[] = {
        [LOOPBACK_XFI_FAR]      = "XFI_FAR",
        [LOOPBACK_GPHY]         = "GPHY",
        [LOOPBACK_PHYXS]        = "PHYXS",
-       [LOOPBACK_PCS]          = "PCS",
-       [LOOPBACK_PMAPMD]       = "PMA/PMD",
+       [LOOPBACK_PCS]          = "PCS",
+       [LOOPBACK_PMAPMD]       = "PMA/PMD",
        [LOOPBACK_XPORT]        = "XPORT",
        [LOOPBACK_XGMII_WS]     = "XGMII_WS",
-       [LOOPBACK_XAUI_WS]      = "XAUI_WS",
+       [LOOPBACK_XAUI_WS]      = "XAUI_WS",
        [LOOPBACK_XAUI_WS_FAR]  = "XAUI_WS_FAR",
        [LOOPBACK_XAUI_WS_NEAR] = "XAUI_WS_NEAR",
-       [LOOPBACK_GMII_WS]      = "GMII_WS",
+       [LOOPBACK_GMII_WS]      = "GMII_WS",
        [LOOPBACK_XFI_WS]       = "XFI_WS",
        [LOOPBACK_XFI_WS_FAR]   = "XFI_WS_FAR",
-       [LOOPBACK_PHYXS_WS]     = "PHYXS_WS",
+       [LOOPBACK_PHYXS_WS]     = "PHYXS_WS",
 };
 
 const unsigned int efx_reset_type_max = RESET_TYPE_MAX;
index 29b2ebfef19f21d85bb61fca9abfe086b88774b0..c090de4e66c35603072f8121c08f9639e7be607b 100644 (file)
@@ -68,11 +68,11 @@ static u64 efx_get_atomic_stat(void *field)
 }
 
 #define EFX_ETHTOOL_ULONG_MAC_STAT(field)                      \
-       EFX_ETHTOOL_STAT(field, mac_stats, field,               \
+       EFX_ETHTOOL_STAT(field, mac_stats, field,               \
                          unsigned long, efx_get_ulong_stat)
 
 #define EFX_ETHTOOL_U64_MAC_STAT(field)                                \
-       EFX_ETHTOOL_STAT(field, mac_stats, field,               \
+       EFX_ETHTOOL_STAT(field, mac_stats, field,               \
                          u64, efx_get_u64_stat)
 
 #define EFX_ETHTOOL_UINT_NIC_STAT(name)                                \
index 9516452c079c810366b5e353b3aea27334d85d13..57434593f07bc8334513cbe43d16760e239798af 100644 (file)
@@ -139,7 +139,7 @@ static bool falcon_xmac_link_ok(struct efx_nic *efx)
        return (efx->loopback_mode == LOOPBACK_XGMII ||
                falcon_xgxs_link_ok(efx)) &&
                (!(efx->mdio.mmds & (1 << MDIO_MMD_PHYXS)) ||
-                LOOPBACK_INTERNAL(efx) || 
+                LOOPBACK_INTERNAL(efx) ||
                 efx_mdio_phyxgxs_lane_sync(efx));
 }
 
index 50c20777a5640ffdfbe67adae3505eff68b90cff..aa4052c500fa75b46a4719832e55560fa0c016b5 100644 (file)
@@ -141,5 +141,5 @@ static bool efx_mcdi_mac_check_fault(struct efx_nic *efx)
 const struct efx_mac_operations efx_mcdi_mac_operations = {
        .reconfigure    = efx_mcdi_mac_reconfigure,
        .update_stats   = efx_port_dummy_op_void,
-       .check_fault    = efx_mcdi_mac_check_fault,
+       .check_fault    = efx_mcdi_mac_check_fault,
 };
index 6c63ab0710af0bbdcc95c8b9c5267f92615ff20d..3077bf1e7dfe6760a579b495c6a87c895aca4cd0 100644 (file)
@@ -741,7 +741,7 @@ static const char *efx_mcdi_phy_test_name(struct efx_nic *efx,
 
 const struct efx_phy_operations efx_mcdi_phy_ops = {
        .probe          = efx_mcdi_phy_probe,
-       .init           = efx_port_dummy_op_int,
+       .init           = efx_port_dummy_op_int,
        .reconfigure    = efx_mcdi_phy_reconfigure,
        .poll           = efx_mcdi_phy_poll,
        .fini           = efx_port_dummy_op_void,
index 7ab385c8136ddfc25a6b261c97908458e2faa188..9acfd6696ffb7a4b0985f3d36317cd6b0c6fb735 100644 (file)
@@ -228,7 +228,7 @@ void efx_mdio_set_mmds_lpower(struct efx_nic *efx,
 /**
  * efx_mdio_set_settings - Set (some of) the PHY settings over MDIO.
  * @efx:               Efx NIC
- * @ecmd:              New settings
+ * @ecmd:              New settings
  */
 int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)
 {
index 3edfbaf5f0229b2190e9e40ec554b4b9c6a84c86..b1df2f39c8f01085e468baa3d1e188e57440d270 100644 (file)
@@ -1837,7 +1837,7 @@ struct efx_nic_reg_table {
        REGISTER_REVISION_ ## min_rev, REGISTER_REVISION_ ## max_rev,   \
        step, rows                                                      \
 }
-#define REGISTER_TABLE(name, min_rev, max_rev)                                 \
+#define REGISTER_TABLE(name, min_rev, max_rev)                         \
        REGISTER_TABLE_DIMENSIONS(                                      \
                name, FR_ ## min_rev ## max_rev ## _ ## name,           \
                min_rev, max_rev,                                       \
index 7ad97e3974060b668437be0297d1ed6e555a6283..8a7caf88ffb6c3bb1d880f58e3e1d832bdad0499 100644 (file)
@@ -47,7 +47,7 @@
 #define PMA_PMD_FTX_STATIC_LBN 13
 #define PMA_PMD_VEND1_REG      0xc001
 #define PMA_PMD_VEND1_LBTXD_LBN        15
-#define PCS_VEND1_REG          0xc000
+#define PCS_VEND1_REG          0xc000
 #define PCS_VEND1_LBTXD_LBN    5
 
 void falcon_qt202x_set_led(struct efx_nic *p, int led, int mode)
@@ -453,9 +453,9 @@ const struct efx_phy_operations falcon_qt202x_phy_ops = {
        .probe           = qt202x_phy_probe,
        .init            = qt202x_phy_init,
        .reconfigure     = qt202x_phy_reconfigure,
-       .poll            = qt202x_phy_poll,
+       .poll            = qt202x_phy_poll,
        .fini            = efx_port_dummy_op_void,
-       .remove          = qt202x_phy_remove,
+       .remove          = qt202x_phy_remove,
        .get_settings    = qt202x_phy_get_settings,
        .set_settings    = efx_mdio_set_settings,
        .test_alive      = efx_mdio_test_alive,
index 52edd24fcde388cfc690e6ca1fe27bae0f20e32a..fc62fe2f766f19687c8799a71573babd4422dfb1 100644 (file)
@@ -445,7 +445,7 @@ static int efx_end_loopback(struct efx_tx_queue *tx_queue,
 
        /* Count the number of tx completions, and decrement the refcnt. Any
         * skbs not already completed will be free'd when the queue is flushed */
-       for (i=0; i < state->packet_count; i++) {
+       for (i = 0; i < state->packet_count; i++) {
                skb = state->skbs[i];
                if (skb && !skb_shared(skb))
                        ++tx_done;
index 71f2e3ebe1c7a41b6ea644041949434d310231cf..5431a1bbff5cf4a0b21b764a48aca4cd5f5e31ea 100644 (file)
@@ -68,7 +68,7 @@ static inline bool efx_spi_present(const struct efx_spi_device *spi)
 
 int falcon_spi_cmd(struct efx_nic *efx,
                   const struct efx_spi_device *spi, unsigned int command,
-                  int address, const voidin, void *out, size_t len);
+                  int address, const void *in, void *out, size_t len);
 int falcon_spi_wait_write(struct efx_nic *efx,
                          const struct efx_spi_device *spi);
 int falcon_spi_read(struct efx_nic *efx,
index 7b0fd89e7b8597411b98cceae7f42e0ba0954f3d..d37cb5017129dfddb415a9c72e14903831e420bc 100644 (file)
 #define GPHY_XCONTROL_REG      49152
 #define GPHY_ISOLATE_LBN       10
 #define GPHY_ISOLATE_WIDTH     1
-#define GPHY_DUPLEX_LBN                8
+#define GPHY_DUPLEX_LBN                8
 #define GPHY_DUPLEX_WIDTH      1
 #define GPHY_LOOPBACK_NEAR_LBN 14
 #define GPHY_LOOPBACK_NEAR_WIDTH 1