summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKyle Roeschley <kyle.roeschley@ni.com>2018-11-09 12:48:03 -0600
committerDavid S. Miller <davem@davemloft.net>2018-11-09 20:13:51 -0800
commit457937bd2e8e70d3a37eee3eaa45d86d169a6762 (patch)
tree2eaccb2733c86888c65fc8761b7598c0e4e8cd69 /include
parent695bce8fd8e994999f40ee279e2fa9979cbae87a (diff)
downloadlinux-457937bd2e8e70d3a37eee3eaa45d86d169a6762.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy_led_triggers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy_led_triggers.h b/include/linux/phy_led_triggers.h
index b37b05bfd1a6..4587ce362535 100644
--- a/include/linux/phy_led_triggers.h
+++ b/include/linux/phy_led_triggers.h
@@ -20,7 +20,7 @@ struct phy_device;
#include <linux/leds.h>
#include <linux/phy.h>
-#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 10
+#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 11
#define PHY_LINK_LED_TRIGGER_NAME_SIZE (MII_BUS_ID_SIZE + \
FIELD_SIZEOF(struct mdio_device, addr)+\