OSDN Git Service

cpufreq: scpi: Use auto-registration of thermal cooling device
authorAmit Kucheria <amit.kucheria@linaro.org>
Tue, 29 Jan 2019 04:55:15 +0000 (10:25 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2019 22:06:08 +0000 (23:06 +0100)
commitcb772b8ce4b9f5353c34f4d38ab0c697c0071625
tree281e8ed4d2ebd0ea18ec32e1f3309b0ace122a02
parent5da7af9a94a735c683de6271f5c1704e8e756695
cpufreq: scpi: Use auto-registration of thermal cooling device

Use the CPUFREQ_IS_COOLING_DEV flag to allow cpufreq core to
automatically register as a thermal cooling device.

This allows removal of boiler plate code from the driver.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/scpi-cpufreq.c