mlxsw: core_thermal: Avoid creation of virtual hwmon objects by thermal module
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Feb 2022 17:16:54 +0000 (19:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2022 12:38:16 +0000 (12:38 +0000)
commitf8a36880f474fe9dcddd61700094f7480dfc680c
treeab7fdcc34360adc8c5332fd7eeae5217266ec2ec
parent42c9135fef9b0a6f82072494b0c00d625a2d5573
mlxsw: core_thermal: Avoid creation of virtual hwmon objects by thermal module

The driver registers with both the hwmon and thermal subsystems.
Therefore, there is no need for the thermal subsystem to automatically
create hwmon entries upon registration of a thermal zone, as this
results in duplicate information.

Avoid creation of virtual hwmon objects by thermal subsystem by
registering a thermal zone with 'no_hwmon' set to 'true'.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c