Skip to content

Commit

Permalink
Revert "thermal/core: Deprecate changing cooling device state from us…
Browse files Browse the repository at this point in the history
…erspace"

This reverts commit a67a46a.

It has been reported the warning is annoying as the cooling device
state is still needed on some production system.

Meanwhile we provide a way to consolidate the thermal framework to
prevent multiple actors acting on the cooling devices with conflicting
decisions, let's revert this warning.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Daniel Lezcano authored and Rafael J. Wysocki committed Apr 22, 2022
1 parent b2d229d commit 5a42ac4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/thermal/thermal_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
unsigned long state;
int result;

dev_warn_once(&cdev->device,
"Setting cooling device state is deprecated\n");

if (sscanf(buf, "%ld\n", &state) != 1)
return -EINVAL;

Expand Down

0 comments on commit 5a42ac4

Please sign in to comment.