Commit 3c76fe74 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'thermal-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fixes from Rafael Wysocki:
 "These take back recent chages that started to confuse users and fix up
  an attr.show callback prototype in a driver.

  Specifics:

   - Stop warning about deprecation of the userspace thermal governor
     and cooling device status interface, because there are cases in
     which user space has to drive thermal management with the help of
     them (Daniel Lezcano)

   - Fix attr.show callback prototype in the int340x thermal driver
     (Kees Cook)"

* tag 'thermal-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal/governor: Remove deprecated information
  Revert "thermal/core: Deprecate changing cooling device state from userspace"
  thermal: int340x: Fix attr.show callback prototype
parents 659ed6e2 a12475f9
...@@ -113,8 +113,10 @@ config THERMAL_DEFAULT_GOV_USER_SPACE ...@@ -113,8 +113,10 @@ config THERMAL_DEFAULT_GOV_USER_SPACE
bool "user_space" bool "user_space"
select THERMAL_GOV_USER_SPACE select THERMAL_GOV_USER_SPACE
help help
Select this if you want to let the user space manage the The Userspace governor allows to get trip point crossed
platform thermals. notification from the kernel via uevents. It is recommended
to use the netlink interface instead which gives richer
information about the thermal framework events.
config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR config THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
bool "power_allocator" bool "power_allocator"
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
static int user_space_bind(struct thermal_zone_device *tz) static int user_space_bind(struct thermal_zone_device *tz)
{ {
pr_warn_once("Userspace governor deprecated: use thermal netlink " \ pr_info_once("Consider using thermal netlink events interface\n");
"notification instead\n");
return 0; return 0;
} }
......
...@@ -68,7 +68,7 @@ static int evaluate_odvp(struct int3400_thermal_priv *priv); ...@@ -68,7 +68,7 @@ static int evaluate_odvp(struct int3400_thermal_priv *priv);
struct odvp_attr { struct odvp_attr {
int odvp; int odvp;
struct int3400_thermal_priv *priv; struct int3400_thermal_priv *priv;
struct kobj_attribute attr; struct device_attribute attr;
}; };
static ssize_t data_vault_read(struct file *file, struct kobject *kobj, static ssize_t data_vault_read(struct file *file, struct kobject *kobj,
...@@ -311,7 +311,7 @@ static int int3400_thermal_get_uuids(struct int3400_thermal_priv *priv) ...@@ -311,7 +311,7 @@ static int int3400_thermal_get_uuids(struct int3400_thermal_priv *priv)
return result; return result;
} }
static ssize_t odvp_show(struct kobject *kobj, struct kobj_attribute *attr, static ssize_t odvp_show(struct device *dev, struct device_attribute *attr,
char *buf) char *buf)
{ {
struct odvp_attr *odvp_attr; struct odvp_attr *odvp_attr;
......
...@@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr, ...@@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
unsigned long state; unsigned long state;
int result; int result;
dev_warn_once(&cdev->device,
"Setting cooling device state is deprecated\n");
if (sscanf(buf, "%ld\n", &state) != 1) if (sscanf(buf, "%ld\n", &state) != 1)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment