mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-20 17:42:27 +07:00
thermal: make ops constant
And while touching that function definition do something about the disaster of formatting there. Signed-off-by: Alan Cox <alan@linux.intel.com> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
e8a7e48bb2
commit
5b275ce270
@ -823,11 +823,8 @@ static struct class thermal_class = {
|
|||||||
* @devdata: device private data.
|
* @devdata: device private data.
|
||||||
* @ops: standard thermal cooling devices callbacks.
|
* @ops: standard thermal cooling devices callbacks.
|
||||||
*/
|
*/
|
||||||
struct thermal_cooling_device *thermal_cooling_device_register(char *type,
|
struct thermal_cooling_device *thermal_cooling_device_register(
|
||||||
void *devdata,
|
char *type, void *devdata, const struct thermal_cooling_device_ops *ops)
|
||||||
struct
|
|
||||||
thermal_cooling_device_ops
|
|
||||||
*ops)
|
|
||||||
{
|
{
|
||||||
struct thermal_cooling_device *cdev;
|
struct thermal_cooling_device *cdev;
|
||||||
struct thermal_zone_device *pos;
|
struct thermal_zone_device *pos;
|
||||||
@ -1048,13 +1045,9 @@ EXPORT_SYMBOL(thermal_zone_device_update);
|
|||||||
* section 11.1.5.1 of the ACPI specification 3.0.
|
* section 11.1.5.1 of the ACPI specification 3.0.
|
||||||
*/
|
*/
|
||||||
struct thermal_zone_device *thermal_zone_device_register(char *type,
|
struct thermal_zone_device *thermal_zone_device_register(char *type,
|
||||||
int trips,
|
int trips, void *devdata,
|
||||||
void *devdata, struct
|
const struct thermal_zone_device_ops *ops,
|
||||||
thermal_zone_device_ops
|
int tc1, int tc2, int passive_delay, int polling_delay)
|
||||||
*ops, int tc1, int
|
|
||||||
tc2,
|
|
||||||
int passive_delay,
|
|
||||||
int polling_delay)
|
|
||||||
{
|
{
|
||||||
struct thermal_zone_device *tz;
|
struct thermal_zone_device *tz;
|
||||||
struct thermal_cooling_device *pos;
|
struct thermal_cooling_device *pos;
|
||||||
|
@ -77,7 +77,7 @@ struct thermal_cooling_device {
|
|||||||
char type[THERMAL_NAME_LENGTH];
|
char type[THERMAL_NAME_LENGTH];
|
||||||
struct device device;
|
struct device device;
|
||||||
void *devdata;
|
void *devdata;
|
||||||
struct thermal_cooling_device_ops *ops;
|
const struct thermal_cooling_device_ops *ops;
|
||||||
struct list_head node;
|
struct list_head node;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ struct thermal_zone_device {
|
|||||||
int last_temperature;
|
int last_temperature;
|
||||||
bool passive;
|
bool passive;
|
||||||
unsigned int forced_passive;
|
unsigned int forced_passive;
|
||||||
struct thermal_zone_device_ops *ops;
|
const struct thermal_zone_device_ops *ops;
|
||||||
struct list_head cooling_devices;
|
struct list_head cooling_devices;
|
||||||
struct idr idr;
|
struct idr idr;
|
||||||
struct mutex lock; /* protect cooling devices list */
|
struct mutex lock; /* protect cooling devices list */
|
||||||
@ -129,11 +129,8 @@ struct thermal_zone_device {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct thermal_zone_device *thermal_zone_device_register(char *, int, void *,
|
struct thermal_zone_device *thermal_zone_device_register(char *, int, void *,
|
||||||
struct
|
const struct thermal_zone_device_ops *, int tc1, int tc2,
|
||||||
thermal_zone_device_ops
|
int passive_freq, int polling_freq);
|
||||||
*, int tc1, int tc2,
|
|
||||||
int passive_freq,
|
|
||||||
int polling_freq);
|
|
||||||
void thermal_zone_device_unregister(struct thermal_zone_device *);
|
void thermal_zone_device_unregister(struct thermal_zone_device *);
|
||||||
|
|
||||||
int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int,
|
int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int,
|
||||||
@ -142,9 +139,7 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int,
|
|||||||
struct thermal_cooling_device *);
|
struct thermal_cooling_device *);
|
||||||
void thermal_zone_device_update(struct thermal_zone_device *);
|
void thermal_zone_device_update(struct thermal_zone_device *);
|
||||||
struct thermal_cooling_device *thermal_cooling_device_register(char *, void *,
|
struct thermal_cooling_device *thermal_cooling_device_register(char *, void *,
|
||||||
struct
|
const struct thermal_cooling_device_ops *);
|
||||||
thermal_cooling_device_ops
|
|
||||||
*);
|
|
||||||
void thermal_cooling_device_unregister(struct thermal_cooling_device *);
|
void thermal_cooling_device_unregister(struct thermal_cooling_device *);
|
||||||
|
|
||||||
#endif /* __THERMAL_H__ */
|
#endif /* __THERMAL_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user