On Fri, Jun 2, 2017 at 10:34 AM, Jan Kiszka [off-list ref] wrote:
Avoids reimplementation of DMI matching in stmmac_pci_find_phy_addr.
quoted hunk ↗ jump to hunk
+static const struct stmmac_pci_func_data galileo_stmmac_func_data[] = {
{
.func = 6,
.phy_addr = 1,
},
+ { },
Now this is redundant.
+};
quoted hunk ↗ jump to hunk
+static const struct stmmac_pci_dmi_data galileo_stmmac_dmi_data = {
+ .func = galileo_stmmac_func_data,
+ .nfuncs = ARRAY_SIZE(galileo_stmmac_func_data),
It will be 2, when is supposed to be 1, see above.
+};
+static const struct stmmac_pci_func_data iot2040_stmmac_func_data[] = {
+ { },
+};
+ .nfuncs = ARRAY_SIZE(iot2040_stmmac_func_data),
Ditto.
--
With Best Regards,
Andy Shevchenko