> >But this driver would be so much easier to read and understand if it > >used mnemonics instead of constants for the register offsets. > > > > Yes, agreed. It is on the to-do list. Should we be more aggressive ? > Since I'll have to resubmit anyway, we could start by adding defines > for all constants used in this patch set, not just some of them.
It may make more sense to remove a lot of the duplicate code first. I have patches which centralises all the switch reset and PHY access. It should also be possible to centralise the statistics code. At a rough guess, that is going to remove 50% of each driver. Quite a bit of the remainder can also be centralised, but there is where the drivers actually start to differ, and so will take more effort. Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/