Files
linux/drivers
Vadim Pasternak 2dc2f76005 mlxsw: core: Use different get_trend() callbacks for different thermal zones
The driver registers three different types of thermal zones: For the
ASIC itself, for port modules and for gearboxes.

Currently, all three types use the same get_trend() callback which does
not work correctly for the ASIC thermal zone. The callback assumes that
the device data is of type 'struct mlxsw_thermal_module', whereas for
the ASIC thermal zone 'struct mlxsw_thermal' is passed as device data.

Fix this by using one get_trend() callback for the ASIC thermal zone and
another for the other two types.

Fixes: 6f73862fab ("mlxsw: core: Add the hottest thermal zone detection")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-07 16:59:43 -07:00
..
2020-03-23 07:59:38 +01:00
2020-03-09 11:12:19 +01:00
2020-05-04 10:13:42 -06:00
2020-04-16 13:52:31 -07:00
2020-03-19 23:04:32 -05:00
2020-06-02 10:59:10 -07:00
2020-04-17 06:05:29 -04:00
2020-05-28 11:11:45 -07:00
2020-03-19 07:41:03 +01:00
2020-05-06 15:49:24 +03:00