diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2026-01-18 23:16:27 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-20 18:56:46 -0800 |
| commit | 0d035fb5dcd925385e607605c57acc7a5c6eee75 (patch) | |
| tree | 8ca1981dd2e46fb866669134c0add4cd78557da5 /include | |
| parent | 1be080b78fd37fffe27b15edf19a3ff1b3867fe4 (diff) | |
net: phy: simplify PHY fixup registration
Based on the fact that either bus_id-based matching or phy_uid-based
matching is used, the code can be simplified. PHY_ANY_ID and
PHY_ANY_UID are not needed. Ensure that phy_id_compare() is called
only if phy_uid_mask isn't zero, because a zero value would always
result in a match.
In addition change the return value type of phy_needs_fixup() to bool.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/e7394cc8-5895-4d02-a8fe-802345c7c547@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
