]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fec: Move `fec_ptp_read()` to the top of the file
authorCsókás, Bence <csokas.bence@prolan.hu>
Mon, 12 Aug 2024 09:47:13 +0000 (11:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Aug 2024 02:16:56 +0000 (19:16 -0700)
commit4374a1fe580a14f6152752390c678d90311df247
tree34afbafa299a889ff4501743efe77344ef9080c5
parented4290f39f417793928630e85c26411db233d841
net: fec: Move `fec_ptp_read()` to the top of the file

This function is used in `fec_ptp_enable_pps()` through
struct cyclecounter read(). Moving the declaration makes
it clearer, what's happening.

Suggested-by: Frank Li <Frank.li@nxp.com>
Link: https://lore.kernel.org/netdev/20240805144754.2384663-1-csokas.bence@prolan.hu/T/#ma6c21ad264016c24612048b1483769eaff8cdf20
Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20240812094713.2883476-1-csokas.bence@prolan.hu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_ptp.c