summaryrefslogtreecommitdiff
path: root/drivers/edgetpu/edgetpu-thermal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edgetpu/edgetpu-thermal.h')
-rw-r--r--drivers/edgetpu/edgetpu-thermal.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/edgetpu/edgetpu-thermal.h b/drivers/edgetpu/edgetpu-thermal.h
index dbd283f..0c163e0 100644
--- a/drivers/edgetpu/edgetpu-thermal.h
+++ b/drivers/edgetpu/edgetpu-thermal.h
@@ -56,17 +56,6 @@ int edgetpu_thermal_suspend(struct device *dev);
int edgetpu_thermal_resume(struct device *dev);
/*
- * Holds thermal->lock.
- *
- * Does nothing if the thermal management is not supported.
- */
-static inline void edgetpu_thermal_lock(struct edgetpu_thermal *thermal)
-{
- if (!IS_ERR_OR_NULL(thermal))
- mutex_lock(&thermal->lock);
-}
-
-/*
* Checks whether device is thermal suspended.
* Returns false if the thermal management is not supported.
*/
@@ -77,15 +66,4 @@ static inline bool edgetpu_thermal_is_suspended(struct edgetpu_thermal *thermal)
return false;
}
-/*
- * Releases thermal->lock.
- *
- * Does nothing if the thermal management is not supported.
- */
-static inline void edgetpu_thermal_unlock(struct edgetpu_thermal *thermal)
-{
- if (!IS_ERR_OR_NULL(thermal))
- mutex_unlock(&thermal->lock);
-}
-
#endif /* __EDGETPU_THERMAL_H__ */