Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / intel / e1000e / param.c
index 39fb5072128e27f84b35acdda876b434fd1bef0c..c16bd75b6caa3f85f4f510da7fb56bafcd0f2b40 100644 (file)
@@ -161,13 +161,18 @@ struct e1000_option {
        const char *err;
        int def;
        union {
-               struct { /* range_option info */
+               /* range_option info */
+               struct {
                        int min;
                        int max;
                } r;
-               struct { /* list_option info */
+               /* list_option info */
+               struct {
                        int nr;
-                       struct e1000_opt_list { int i; char *str; } *p;
+                       struct e1000_opt_list {
+                               int i;
+                               char *str;
+                       } *p;
                } l;
        } arg;
 };
@@ -247,7 +252,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                           "Using defaults for all values\n");
        }
 
-       { /* Transmit Interrupt Delay */
+       /* Transmit Interrupt Delay */
+       {
                static const struct e1000_option opt = {
                        .type = range_option,
                        .name = "Transmit Interrupt Delay",
@@ -266,7 +272,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        adapter->tx_int_delay = opt.def;
                }
        }
-       { /* Transmit Absolute Interrupt Delay */
+       /* Transmit Absolute Interrupt Delay */
+       {
                static const struct e1000_option opt = {
                        .type = range_option,
                        .name = "Transmit Absolute Interrupt Delay",
@@ -285,7 +292,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        adapter->tx_abs_int_delay = opt.def;
                }
        }
-       { /* Receive Interrupt Delay */
+       /* Receive Interrupt Delay */
+       {
                static struct e1000_option opt = {
                        .type = range_option,
                        .name = "Receive Interrupt Delay",
@@ -304,7 +312,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        adapter->rx_int_delay = opt.def;
                }
        }
-       { /* Receive Absolute Interrupt Delay */
+       /* Receive Absolute Interrupt Delay */
+       {
                static const struct e1000_option opt = {
                        .type = range_option,
                        .name = "Receive Absolute Interrupt Delay",
@@ -323,7 +332,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        adapter->rx_abs_int_delay = opt.def;
                }
        }
-       { /* Interrupt Throttling Rate */
+       /* Interrupt Throttling Rate */
+       {
                static const struct e1000_option opt = {
                        .type = range_option,
                        .name = "Interrupt Throttling Rate (ints/sec)",
@@ -393,7 +403,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        break;
                }
        }
-       { /* Interrupt Mode */
+       /* Interrupt Mode */
+       {
                static struct e1000_option opt = {
                        .type = range_option,
                        .name = "Interrupt Mode",
@@ -436,7 +447,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                kfree(opt.err);
 #endif
        }
-       { /* Smart Power Down */
+       /* Smart Power Down */
+       {
                static const struct e1000_option opt = {
                        .type = enable_option,
                        .name = "PHY Smart Power Down",
@@ -451,7 +463,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                                adapter->flags |= FLAG_SMART_POWER_DOWN;
                }
        }
-       { /* CRC Stripping */
+       /* CRC Stripping */
+       {
                static const struct e1000_option opt = {
                        .type = enable_option,
                        .name = "CRC Stripping",
@@ -471,7 +484,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        adapter->flags2 |= FLAG2_DFLT_CRC_STRIPPING;
                }
        }
-       { /* Kumeran Lock Loss Workaround */
+       /* Kumeran Lock Loss Workaround */
+       {
                static const struct e1000_option opt = {
                        .type = enable_option,
                        .name = "Kumeran Lock Loss Workaround",
@@ -490,7 +504,8 @@ void e1000e_check_options(struct e1000_adapter *adapter)
                        e1000e_set_kmrn_lock_loss_workaround_ich8lan(hw,
                                                                     enabled);
        }
-       { /* Write-protect NVM */
+       /* Write-protect NVM */
+       {
                static const struct e1000_option opt = {
                        .type = enable_option,
                        .name = "Write-protect NVM",