diff options
author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2018-08-05 16:51:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-05 17:08:26 -0700 |
commit | cde49a42a9bbba18d7f33550fd70037930c14e97 (patch) | |
tree | 0cf94c307dcde29a16c52ae69681b60a0e54bfce /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | 25e1acd6b92bde36c03273d883c44c4d0e8995e6 (diff) | |
download | lwn-cde49a42a9bbba18d7f33550fd70037930c14e97.tar.gz lwn-cde49a42a9bbba18d7f33550fd70037930c14e97.zip |
bnxt_en: Add hwmon sysfs support to read temperature
Export temperature sensor reading via hwmon sysfs.
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 6c40b25716d3..006726c02f51 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1411,6 +1411,7 @@ struct bnxt { struct bnxt_tc_info *tc_info; struct dentry *debugfs_pdev; struct dentry *debugfs_dim; + struct device *hwmon_dev; }; #define BNXT_RX_STATS_OFFSET(counter) \ |