]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: ax88796b: Replace hard-coded values with PHY_ID_MATCH_MODEL()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 19 Sep 2025 10:39:45 +0000 (12:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Sep 2025 23:38:59 +0000 (16:38 -0700)
commit530ae8ec0e5e08b123ca667aedaf7fdbb1a8200f
tree23d791c75a7d699992d2bef531b945237e2eb1bd
parent312e6a58f764627037032160ed8c671885f31360
net: phy: ax88796b: Replace hard-coded values with PHY_ID_MATCH_MODEL()

Use the PHY_ID_MATCH_MODEL() macro instead of hardcoding the values in
asix_driver[] and asix_tbl[].

In asix_tbl[], the macro also uses designated initializers instead of
positional initializers, which allows the struct fields to be reordered.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250919103944.854845-2-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/ax88796b.c