[net-next PATCH 0/2] net: add define to describe link speed modes

Christian Marangi
2023-12-13T18:16:10Z

This is a simple series to add define to describe link speed modes.

Hope the proposed way is acceptable with the enum and define.

This is also needed in the upcoming changes in the netdev trigger for LEDs
where phy_speeds functions is used to declare a more compact array instead
of using a "big enough" approach.

Christian Marangi (2):
net: ethtool: add define for link speed mode number
net: phy: leds: use new define for link speed modes number

drivers/net/phy/phy_led_triggers.c | 2 +-
include/uapi/linux/ethtool.h | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)

--
2.40.1