Skip to content

Commit 4345029

Browse files
lunndavem330
authored andcommitted
net: dsa: Mop up remaining NET_DSA_HWMON references
Previous patches have moved the temperature sensor code into the Marvell PHYs. A few now dead references to NET_DSA_HWMON were left behind. Go reap them. Reported-by: Valentin Rothberg <valentinrothberg@gmail.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6eacfb5 commit 4345029

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

‎Documentation/networking/dsa/dsa.txt‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ DSA currently leverages the following subsystems:
295295
- MDIO/PHY library: drivers/net/phy/phy.c, mdio_bus.c
296296
- Switchdev: net/switchdev/*
297297
- Device Tree for various of_* functions
298-
- HWMON: drivers/hwmon/*
299298

300299
MDIO/PHY library
301300
----------------
@@ -349,12 +348,6 @@ Documentation/devicetree/bindings/net/dsa/dsa.txt. PHY/MDIO library helper
349348
functions such as of_get_phy_mode(), of_phy_connect() are also used to query
350349
per-port PHY specific details: interface connection, MDIO bus location etc..
351350

352-
HWMON
353-
-----
354-
355-
Some switch drivers feature internal temperature sensors which are exposed as
356-
regular HWMON devices in /sys/class/hwmon/.
357-
358351
Driver development
359352
==================
360353

@@ -495,23 +488,6 @@ Power management
495488
BR_STATE_DISABLED and propagating changes to the hardware if this port is
496489
disabled while being a bridge member
497490

498-
Hardware monitoring
499-
-------------------
500-
501-
These callbacks are only available if CONFIG_NET_DSA_HWMON is enabled:
502-
503-
- get_temp: this function queries the given switch for its temperature
504-
505-
- get_temp_limit: this function returns the switch current maximum temperature
506-
limit
507-
508-
- set_temp_limit: this function configures the maximum temperature limit allowed
509-
510-
- get_temp_alarm: this function returns the critical temperature threshold
511-
returning an alarm notification
512-
513-
See Documentation/hwmon/sysfs-interface for details.
514-
515491
Bridge layer
516492
------------
517493

‎include/net/dsa.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,6 @@ struct dsa_switch {
178178
*/
179179
s8 rtable[DSA_MAX_SWITCHES];
180180

181-
#ifdef CONFIG_NET_DSA_HWMON
182-
/*
183-
* Hardware monitoring information
184-
*/
185-
char hwmon_name[IFNAMSIZ + 8];
186-
struct device *hwmon_dev;
187-
#endif
188-
189181
/*
190182
* The lower device this switch uses to talk to the host
191183
*/

0 commit comments

Comments
 (0)