]> 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)
commitd244ec82ef391114d5f82a63de9059f6a093bce3
treeab7fdcc34360adc8c5332fd7eeae5217266ec2ec
parent6c2d66e0488e23288d74694cbea080ef0a5624e5
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