hwmon: (mlxreg-fan) Support distinctive names per different cooling devices
authorVadim Pasternak <vadimp@nvidia.com>
Sun, 26 Sep 2021 05:35:41 +0000 (08:35 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Oct 2021 14:22:41 +0000 (07:22 -0700)
commitb2be2422c0c98b00f21c4331e2d9342bd58bfdba
treedc3c35c4b3534abe73cfce5fc3adddd67e299ca5
parentb1c24237341f6fb910c6cb15489222a9f47258d6
hwmon: (mlxreg-fan) Support distinctive names per different cooling devices

Provide different names for cooling devices registration to allow
binding each cooling devices to relevant thermal zone. Thus, specific
cooling device can be associated with related thermal sensor by setting
thermal cooling device type for example to "mlxreg_fan2" and passing
this type to thermal_zone_bind_cooling_device() through 'cdev->type'.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20210926053541.1806937-3-vadimp@nvidia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mlxreg-fan.c