}
+static const struct hclge_link_mode_bit_map hclge_sr_link_mode_bit_map[8] = {
Names of those arrays are a bit too long. I know this is a standard here but I'm not sure if
"bit_map" at the end is necessary.
+ {HCLGE_SUPPORT_10G_BIT, ETHTOOL_LINK_MODE_10000baseSR_Full_BIT},Checkpatch complains about wrong wrapping (here and in the next 3 functions):
+ {HCLGE_SUPPORT_25G_BIT, ETHTOOL_LINK_MODE_25000baseSR_Full_BIT},
+ {HCLGE_SUPPORT_40G_BIT, ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT},
+ {HCLGE_SUPPORT_50G_R2_BIT, ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT},
+ if (speed_ability & hclge_sr_link_mode_bit_map[i].support_bit)
+ linkmode_set_bit(
CHECK: Lines should not end with a '('
+ hclge_sr_link_mode_bit_map[i].link_mode,
+ link_mode);
+ }
}