net: phy: at803x: refactor qca808x cable test get status function
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 4 Jan 2024 21:30:39 +0000 (22:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jan 2024 16:23:21 +0000 (16:23 +0000)
commite0e9ada1df6133513249861c1d91c1dbefd9383b
treefbb03b52274f652caaa1c1e43b0f09956fabf5ce
parent22eb276098da820d9440fad22901f9b74ed4d659
net: phy: at803x: refactor qca808x cable test get status function

Refactor qca808x cable test get status function to remove code
duplication and clean things up.

The same logic is applied to each pair hence it can be generalized and
moved to a common function.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c