net: sun8i-emac: Add a structure for variant data
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 22:51:02 +0000 (16:51 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 11 Apr 2023 23:17:20 +0000 (00:17 +0100)
commitc86d47328eb9b6d674b4b23311201161c5a9b3aa
treef6bb8d7458407527c74d0129fbb27247500fe778
parentf5ee1ea864c4b8cbc13c58d5961a2b4be14e0e61
net: sun8i-emac: Add a structure for variant data

Currently, EMAC variants are distinguished by their identity, but this
gets unwieldy as more overlapping variants are added. Add a structure so
we can describe the individual feature differences between the variants.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/net/sun8i_emac.c