diff mbox series

thermal: ti-soc-thermal: Remove unused declarations

Message ID 20240812125210.94280-1-zhangzekun11@huawei.com (mailing list archive)
State New
Delegated to: Daniel Lezcano
Headers show
Series thermal: ti-soc-thermal: Remove unused declarations | expand

Commit Message

Zhang Zekun Aug. 12, 2024, 12:52 p.m. UTC
The functions definition of ti_bandgap_read_thot(),
ti_bandgap_write_thot(), ti_bandgap_read_tcold() and
ti_bandgap_write_tcold() has been removed since commit 9bebf3485c6a
("thermal: ti-soc-thermal: remove dead code"), remain the declarations
untouched in the header files. So, clean up this unused declarations.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
---
 drivers/thermal/ti-soc-thermal/ti-bandgap.h | 4 ----
 1 file changed, 4 deletions(-)

Comments

Dhruva Gole Aug. 13, 2024, 5 a.m. UTC | #1
On Aug 12, 2024 at 20:52:10 +0800, Zhang Zekun wrote:
> The functions definition of ti_bandgap_read_thot(),
> ti_bandgap_write_thot(), ti_bandgap_read_tcold() and
> ti_bandgap_write_tcold() has been removed since commit 9bebf3485c6a
> ("thermal: ti-soc-thermal: remove dead code"), remain the declarations
> untouched in the header files. So, clean up this unused declarations.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
> ---
>  drivers/thermal/ti-soc-thermal/ti-bandgap.h | 4 ----
>  1 file changed, 4 deletions(-)
> 

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Daniel Lezcano Sept. 2, 2024, 11:20 a.m. UTC | #2
On 12/08/2024 14:52, Zhang Zekun wrote:
> The functions definition of ti_bandgap_read_thot(),
> ti_bandgap_write_thot(), ti_bandgap_read_tcold() and
> ti_bandgap_write_tcold() has been removed since commit 9bebf3485c6a
> ("thermal: ti-soc-thermal: remove dead code"), remain the declarations
> untouched in the header files. So, clean up this unused declarations.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
> ---

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.h b/drivers/thermal/ti-soc-thermal/ti-bandgap.h
index 1f4bbaf31675..46263c1da8b6 100644
--- a/drivers/thermal/ti-soc-thermal/ti-bandgap.h
+++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.h
@@ -336,10 +336,6 @@  struct ti_bandgap_data {
 	struct ti_temp_sensor		sensors[];
 };
 
-int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot);
-int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val);
-int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold);
-int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val);
 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,
 				    int *interval);
 int ti_bandgap_write_update_interval(struct ti_bandgap *bgp, int id,