mlxsw: core: Rename cooling device
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 13 Feb 2019 11:28:52 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:33:02 +0000 (22:33 -0800)
Rename cooling device from "Fan" to "mlxsw_fan".  Name "Fan" is too
common name, and such name is misleading, while it's interpreted by
user. For example name "Fan" could be used by ACPI.

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>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c

index b9fb334..8b71706 100644 (file)
@@ -431,8 +431,9 @@ int mlxsw_thermal_init(struct mlxsw_core *core,
                if (pwm_active & BIT(i)) {
                        struct thermal_cooling_device *cdev;
 
-                       cdev = thermal_cooling_device_register("Fan", thermal,
-                                                       &mlxsw_cooling_ops);
+                       cdev = thermal_cooling_device_register("mlxsw_fan",
+                                                              thermal,
+                                                              &mlxsw_cooling_ops);
                        if (IS_ERR(cdev)) {
                                err = PTR_ERR(cdev);
                                dev_err(dev, "Failed to register cooling device\n");