]> www.infradead.org Git - users/hch/configfs.git/commit
net: pcs: xpcs: Move native device ID macro to linux/pcs/pcs-xpcs.h
authorSerge Semin <fancer.lancer@gmail.com>
Mon, 1 Jul 2024 18:28:32 +0000 (21:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2024 08:35:49 +0000 (09:35 +0100)
commitf37bee9508885ce5edd4875c744e1af28cfac76c
tree012256d2c728f75fa34cd5eda80d57dd51f115bb
parent390b14b5e9f6e987381a5dc96b3d636000a44b53
net: pcs: xpcs: Move native device ID macro to linux/pcs/pcs-xpcs.h

One of the next commits will alter the DW XPCS driver to support setting a
custom device ID for the particular MDIO-device detected on the platform.
The generic DW XPCS ID can be used as a custom ID as well in case if the
DW XPCS-device was erroneously synthesized with no or some undefined ID.
In addition to that having all supported DW XPCS device IDs defined in a
single place will improve the code maintainability and readability.

Note while at it rename the macros to being shorter and looking alike to
the already defined NXP XPCS ID macro.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c
drivers/net/pcs/pcs-xpcs.h
include/linux/pcs/pcs-xpcs.h