ethernet: ti: cpts: Use generic helper function
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 18 Aug 2020 10:32:48 +0000 (12:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2020 23:09:19 +0000 (16:09 -0700)
commit17de44c2c709e644e27e6cd475d42f3aa652885b
tree1afd1fde66016493c7567a08111d7edc2267293b
parent4bccb5d043dbd5c3a96bcc347c838ee9407f7d41
ethernet: ti: cpts: Use generic helper function

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

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c