From: Ido Schimmel <ido...@idosch.org>
Date: Sun,  7 Jun 2020 11:10:27 +0300

> From: Vadim Pasternak <vad...@mellanox.com>
> 
> 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: 6f73862fabd9 ("mlxsw: core: Add the hottest thermal zone detection")
> Signed-off-by: Vadim Pasternak <vad...@mellanox.com>
> Reviewed-by: Jiri Pirko <j...@mellanox.com>
> Signed-off-by: Ido Schimmel <ido...@mellanox.com>

Applied and queued up for -stable, thanks.

Reply via email to