thermal/core: Make cooling device state change private

The change of the cooling device state should be used by the governor
or at least by the core code, not by the drivers themselves.

Remove the API usage and move the function declaration to the internal
headers.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20210118173824.9970-1-daniel.lezcano@linaro.org
This commit is contained in:
Daniel Lezcano
2021-01-18 18:38:24 +01:00
parent 03671968d0
commit 23ff8529ee
4 changed files with 2 additions and 5 deletions

View File

@ -422,7 +422,6 @@ static int pwm_fan_probe(struct platform_device *pdev)
return ret;
}
ctx->cdev = cdev;
thermal_cdev_update(cdev);
}
return 0;