]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: mv88e6xxx: remove duplicated register definition
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 16 Sep 2025 20:34:58 +0000 (21:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 01:21:07 +0000 (18:21 -0700)
commit30cf6a875e2986ff137feaf2a25620b01ad412ab
tree7615902a2fe64b65710001628476e2fc5b997836
parent946fc083fcb57e11bd0f2505f75bb5e63ee86cdd
net: dsa: mv88e6xxx: remove duplicated register definition

There are two identical MV88E6XXX_PTP_GC_ETYPE definitions in ptp.h,
and MV88E6XXX_PTP_ETHERTYPE in hwtstamp.h which all refer to the
exact same register. As the code that accesses this register is in
hwtstamp.c, use the hwtstamp.h definition, and remove the
unnecessary duplicated definition in ptp.h

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/hwtstamp.c
drivers/net/dsa/mv88e6xxx/ptp.h