Skip to content

Commit 5a42ac4

Browse files
dlezcanorafaeljw
authored andcommitted
Revert "thermal/core: Deprecate changing cooling device state from userspace"
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b2d229d commit 5a42ac4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/thermal/thermal_sysfs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
610610
unsigned long state;
611611
int result;
612612

613-
dev_warn_once(&cdev->device,
614-
"Setting cooling device state is deprecated\n");
615-
616613
if (sscanf(buf, "%ld\n", &state) != 1)
617614
return -EINVAL;
618615

0 commit comments

Comments
 (0)