mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
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:
parent
03671968d0
commit
23ff8529ee
@ -422,7 +422,6 @@ static int pwm_fan_probe(struct platform_device *pdev)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ctx->cdev = cdev;
|
ctx->cdev = cdev;
|
||||||
thermal_cdev_update(cdev);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -100,7 +100,6 @@ static int khadas_mcu_fan_probe(struct platform_device *pdev)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ctx->cdev = cdev;
|
ctx->cdev = cdev;
|
||||||
thermal_cdev_update(cdev);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,8 @@ static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev)
|
|||||||
cdev->ops->power2state;
|
cdev->ops->power2state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void thermal_cdev_update(struct thermal_cooling_device *);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct thermal_trip - representation of a point in temperature domain
|
* struct thermal_trip - representation of a point in temperature domain
|
||||||
* @np: pointer to struct device_node that this trip point was created from
|
* @np: pointer to struct device_node that this trip point was created from
|
||||||
|
@ -390,7 +390,6 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp);
|
|||||||
int thermal_zone_get_slope(struct thermal_zone_device *tz);
|
int thermal_zone_get_slope(struct thermal_zone_device *tz);
|
||||||
int thermal_zone_get_offset(struct thermal_zone_device *tz);
|
int thermal_zone_get_offset(struct thermal_zone_device *tz);
|
||||||
|
|
||||||
void thermal_cdev_update(struct thermal_cooling_device *);
|
|
||||||
void thermal_notify_framework(struct thermal_zone_device *, int);
|
void thermal_notify_framework(struct thermal_zone_device *, int);
|
||||||
int thermal_zone_device_enable(struct thermal_zone_device *tz);
|
int thermal_zone_device_enable(struct thermal_zone_device *tz);
|
||||||
int thermal_zone_device_disable(struct thermal_zone_device *tz);
|
int thermal_zone_device_disable(struct thermal_zone_device *tz);
|
||||||
@ -437,8 +436,6 @@ static inline int thermal_zone_get_offset(
|
|||||||
struct thermal_zone_device *tz)
|
struct thermal_zone_device *tz)
|
||||||
{ return -ENODEV; }
|
{ return -ENODEV; }
|
||||||
|
|
||||||
static inline void thermal_cdev_update(struct thermal_cooling_device *cdev)
|
|
||||||
{ }
|
|
||||||
static inline void thermal_notify_framework(struct thermal_zone_device *tz,
|
static inline void thermal_notify_framework(struct thermal_zone_device *tz,
|
||||||
int trip)
|
int trip)
|
||||||
{ }
|
{ }
|
||||||
|
Loading…
Reference in New Issue
Block a user