net: ethernet: sun4i-emac: replace magic number with macro
authorConley Lee <conleylee@foxmail.com>
Tue, 11 Jan 2022 03:05:53 +0000 (11:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jan 2022 04:34:16 +0000 (20:34 -0800)
commit274c224062ff9545d8df2a6e4764a5fd660d792e
tree9add8b4db1845f93fe83464c08999cae7797b8fb
parent284a4d94e8e74fbd731ee67e29196656ca823423
net: ethernet: sun4i-emac: replace magic number with macro

This patch remove magic numbers in sun4i-emac.c and replace with macros
defined in sun4i-emac.h

Signed-off-by: Conley Lee <conleylee@foxmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Link: https://lore.kernel.org/r/tencent_71466C2135CD1780B19D7844BE3F167C940A@qq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/allwinner/sun4i-emac.c
drivers/net/ethernet/allwinner/sun4i-emac.h