diff mbox series

[-next] thermal: ti-soc-thermal: Remove unused function ti_thermal_get_temp()

Message ID 20220305125047.26948-1-yuehaibing@huawei.com
State New
Headers show
Series [-next] thermal: ti-soc-thermal: Remove unused function ti_thermal_get_temp() | expand

Commit Message

Yue Haibing March 5, 2022, 12:50 p.m. UTC
commit b263b473bf62 ("thermal: ti-soc-thermal: Remove redundant code")
left behind this, remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 8 --------
 1 file changed, 8 deletions(-)

Comments

Bryan Brattlof March 5, 2022, 4:55 p.m. UTC | #1
On March  5, 2022, thus sayeth YueHaibing:
> commit b263b473bf62 ("thermal: ti-soc-thermal: Remove redundant code")
> left behind this, remove it.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Reviewed-by: Bryan Brattlof <bb@ti.com>

thanks for helping clean the codebase :)
~Bryan

> ---
>  drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
> index 0959632b2170..703039d8b937 100644
> --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
> +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
> @@ -107,14 +107,6 @@ static inline int __ti_thermal_get_temp(void *devdata, int *temp)
>  	return ret;
>  }
>  
> -static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal,
> -				      int *temp)
> -{
> -	struct ti_thermal_data *data = thermal->devdata;
> -
> -	return __ti_thermal_get_temp(data, temp);
> -}
> -
>  static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend)
>  {
>  	struct ti_thermal_data *data = p;
> -- 
> 2.17.1
>
diff mbox series

Patch

diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
index 0959632b2170..703039d8b937 100644
--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c
@@ -107,14 +107,6 @@  static inline int __ti_thermal_get_temp(void *devdata, int *temp)
 	return ret;
 }
 
-static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal,
-				      int *temp)
-{
-	struct ti_thermal_data *data = thermal->devdata;
-
-	return __ti_thermal_get_temp(data, temp);
-}
-
 static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend)
 {
 	struct ti_thermal_data *data = p;