diff options
author | Andrew Lunn <[email protected]> | 2018-09-04 04:23:56 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-09-04 12:22:41 -0700 |
commit | a33710bdb6b284f8f1e24f1119d167037b374ebb (patch) | |
tree | 8732e6fef20d32540370f51d03d2dbf30eab76cb /net/tipc | |
parent | 84cb8eb26cb9ce3c79928094962a475a9d850a53 (diff) |
net: phy: sfp: Handle unimplemented hwmon limits and alarms
Not all SFPs implement the registers containing sensor limits and
alarms. Luckily, there is a bit indicating if they are implemented or
not. Add checking for this bit, when deciding if the hwmon attributes
should be visible.
Fixes: 1323061a018a ("net: phy: sfp: Add HWMON support for module sensors")
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions