]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: ucc_geth: factor out parsing of {rx,tx}-clock{,-name} properties
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 19 Jan 2021 15:07:54 +0000 (16:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 20:19:55 +0000 (12:19 -0800)
commit1a453524d423386c74de6929c3039b3424de9e0d
tree4ebd680c9bcd70e38cb0b89cbfd94af036a1b201
parentc7821c7b8a039621b17109945994adc3100d373c
ethernet: ucc_geth: factor out parsing of {rx,tx}-clock{,-name} properties

Reduce the code duplication a bit by moving the parsing of
rx-clock-name and the fallback handling to a helper function.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/ucc_geth.c