]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3e36da373b6cb64d355ad45a433cf7afa075862
treeab7fdcc34360adc8c5332fd7eeae5217266ec2ec
parentfed8183475a6d5a78b7b8403360fb62faa524787
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