net: phy: sfp: Add labels to hwmon sensors
authorAndrew Lunn <andrew@lunn.ch>
Sat, 24 Aug 2019 23:04:17 +0000 (01:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Aug 2019 00:01:36 +0000 (17:01 -0700)
commitc1236979b4d2cbaef8bb34aec83a44de445e4210
treec0d88cfa6a811c5c934c95090201aee36b11759f
parenta914a84110354925afbae72d2ade97773e018abd
net: phy: sfp: Add labels to hwmon sensors

SFPs can report two different power values, the transmit power and the
receive power. Add labels to make it clear which is which. Also add
labels to the other sensors, VCC power supply, bias and module
temperature.

sensors(1) now shows:

sff2-isa-0000
Adapter: ISA adapter
VCC:          +3.23 V
temperature:  +33.4 C
TX_power:    276.00 uW
RX_power:     20.00 uW
bias:         +0.01 A

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c