hwmon: (aspeed-pwm-tacho) cooling device support.
authorMykola Kostenok <c_mykolak@mellanox.com>
Thu, 3 Aug 2017 08:50:44 +0000 (11:50 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Aug 2017 15:24:38 +0000 (08:24 -0700)
commitf198907d2ff6db9541863764576aaf3bc9f58ec0
tree0d9f2f036ef54a83ea93417ac9ccf3e2c918cd29
parent5e047541c1412f22d1c0950260da337ebc9bdb49
hwmon: (aspeed-pwm-tacho) cooling device support.

Add support in aspeed-pwm-tacho driver for cooling device creation.
This cooling device could be bound to a thermal zone
for the thermal control. Device will appear in /sys/class/thermal
folder as cooling_deviceX. Then it could be bound to particular
thermal zones. Allow specification of the cooling levels
vector - PWM duty cycle values in a range from 0 to 255
which correspond to thermal cooling states.

Signed-off-by: Mykola Kostenok <c_mykolak@mellanox.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aspeed-pwm-tacho.c