net: phy: leds: Don't make our own link speed names
authorKyle Roeschley <kyle.roeschley@ni.com>
Fri, 9 Nov 2018 18:48:03 +0000 (12:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2018 04:13:51 +0000 (20:13 -0800)
commit457937bd2e8e70d3a37eee3eaa45d86d169a6762
tree2eaccb2733c86888c65fc8761b7598c0e4e8cd69
parent695bce8fd8e994999f40ee279e2fa9979cbae87a
net: phy: leds: Don't make our own link speed names

The phy core provides a handy phy_speed_to_str() helper, so use that
instead of doing our own formatting of the different known link speeds.
To do this, increase PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE to 11 so we can fit
'Unsupported' if necessary.

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_led_triggers.c
include/linux/phy_led_triggers.h