net: phy: at803x: move qca83xx specific check in dedicated functions
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 8 Dec 2023 14:51:51 +0000 (15:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:34:27 +0000 (10:34 +0000)
commitd43cff3f82336c0bd965ea552232d9f4ddac71a6
tree93d12f2fc219ef725a721fef2ff4d6edb6b1635a
parent07b1ad83b9ed6db1735ba10baf67b7a565ac0cef
net: phy: at803x: move qca83xx specific check in dedicated functions

Rework qca83xx specific check to dedicated function to tidy things up
and drop useless phy_id check.

Also drop an useless link_change_notify for QCA8337 as it did nothing an
returned early.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c