summaryrefslogtreecommitdiff
path: root/gxp-thermal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gxp-thermal.h')
-rw-r--r--gxp-thermal.h33
1 files changed, 4 insertions, 29 deletions
diff --git a/gxp-thermal.h b/gxp-thermal.h
index c1939ef..aa4fe3a 100644
--- a/gxp-thermal.h
+++ b/gxp-thermal.h
@@ -2,43 +2,18 @@
/*
* Platform thermal driver for GXP.
*
- * Copyright (C) 2021 Google LLC
+ * Copyright (C) 2021-2023 Google LLC
*/
#ifndef __GXP_THERMAL_H__
#define __GXP_THERMAL_H__
-#include <linux/debugfs.h>
-#include <linux/device.h>
-#include <linux/mutex.h>
-#include <linux/thermal.h>
+#include <gcip/gcip-thermal.h>
#include "gxp-internal.h"
-#include "gxp-pm.h"
#define GXP_COOLING_NAME "gxp-cooling"
-struct gxp_thermal_manager {
- struct dentry *cooling_root;
- struct thermal_cooling_device *cdev;
- struct mutex lock;
- void *op_data;
- unsigned long cooling_state;
- unsigned long sysfs_req;
- unsigned int gxp_num_states;
- struct gxp_dev *gxp;
- bool thermal_suspended; /* GXP thermal suspended state */
-};
-
-/*
- * Internal structure to do the state/pwr mapping
- * state: kHz that AUR is running
- * power: mW that the state consume
- */
-struct gxp_state_pwr {
- unsigned long state;
- u32 power;
-};
-
-struct gxp_thermal_manager *gxp_thermal_init(struct gxp_dev *gxp);
+int gxp_thermal_init(struct gxp_dev *gxp);
+void gxp_thermal_exit(struct gxp_dev *gxp);
#endif /* __GXP_THERMAL_H__ */