]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: thunder_bgx: use ethtool.h constants for speed and duplex
authorMichael Zhivich <mzhivich@akamai.com>
Mon, 8 Apr 2019 19:00:46 +0000 (15:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 23:37:40 +0000 (16:37 -0700)
commit2d1ab3a12f1ef1dacfcb80f8e960d81a31008d99
tree0c8331800a7b8ead2ccdd0924709b98e1d424587
parentce0e568881ba69b397ab730dcb4bc79e5afa283a
ethtool: thunder_bgx: use ethtool.h constants for speed and duplex

Use constants provided by ethtool.h for speed and duplex values
instead of raw integer constants to increase code readability.

thunder_bgx already uses SPEED_UNKNOWN and DUPLEX_UNKNOWN constants,
also provided by ethtool.h.

Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c