]> 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)
commit5455475b45fa30db9d7dad799906e30c6cbe1abe
tree0c8331800a7b8ead2ccdd0924709b98e1d424587
parent749677af7a064d48c42b014fae85436de043be55
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