net: dsa: mv88e6xxx: Use generic helper function
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 18 Aug 2020 10:32:45 +0000 (12:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2020 23:07:49 +0000 (16:07 -0700)
commit28fba67ff97fa4e0ff9f73c0524fe66455f56086
tree8a7a3fd3cdfbf5c1aa1391819ad9bfdbe27f1890
parent036c508ba95e573f53bd5bbb79b0c4d71003b319
net: dsa: mv88e6xxx: Use generic helper function

In order to reduce code duplication between ptp drivers, generic helper
functions were introduced. Use them.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Tested-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/hwtstamp.c