diff mbox series

thermal: int3403: remove unused struct 'int3403_performance_state'

Message ID 20240529175309.83294-1-linux@treblig.org
State Accepted
Commit 68f2d1dc4826e7bafbfbf7acc745913623a48955
Headers show
Series thermal: int3403: remove unused struct 'int3403_performance_state' | expand

Commit Message

Dr. David Alan Gilbert May 29, 2024, 5:53 p.m. UTC
From: "Dr. David Alan Gilbert" <linux@treblig.org>

'int3403_performance_state' has never been used since the original
commit 4384b8fe162d ("Thermal: introduce int3403 thermal driver").

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Zhang Rui May 30, 2024, 7:21 a.m. UTC | #1
On Wed, 2024-05-29 at 18:53 +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'int3403_performance_state' has never been used since the original
> commit 4384b8fe162d ("Thermal: introduce int3403 thermal driver").
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Acked-by: Zhang Rui <rui.zhang@intel.com>


> ---
>  .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 ---------
> --
>  1 file changed, 11 deletions(-)
> 
> diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> index 86901f9f54d8..c094a422ded3 100644
> --- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> +++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> @@ -25,17 +25,6 @@ struct int3403_sensor {
>         struct int34x_thermal_zone *int340x_zone;
>  };
>  
> -struct int3403_performance_state {
> -       u64 performance;
> -       u64 power;
> -       u64 latency;
> -       u64 linear;
> -       u64 control;
> -       u64 raw_performace;
> -       char *raw_unit;
> -       int reserved;
> -};
> -
>  struct int3403_cdev {
>         struct thermal_cooling_device *cdev;
>         unsigned long max_state;
Rafael J. Wysocki June 7, 2024, 7:23 p.m. UTC | #2
On Thu, May 30, 2024 at 9:21 AM Zhang, Rui <rui.zhang@intel.com> wrote:
>
> On Wed, 2024-05-29 at 18:53 +0100, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >
> > 'int3403_performance_state' has never been used since the original
> > commit 4384b8fe162d ("Thermal: introduce int3403 thermal driver").
> >
> > Remove it.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>
> Acked-by: Zhang Rui <rui.zhang@intel.com>

Applied as 6.11 material, thanks!

> > ---
> >  .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 ---------
> > --
> >  1 file changed, 11 deletions(-)
> >
> > diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> > b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> > index 86901f9f54d8..c094a422ded3 100644
> > --- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> > +++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
> > @@ -25,17 +25,6 @@ struct int3403_sensor {
> >         struct int34x_thermal_zone *int340x_zone;
> >  };
> >
> > -struct int3403_performance_state {
> > -       u64 performance;
> > -       u64 power;
> > -       u64 latency;
> > -       u64 linear;
> > -       u64 control;
> > -       u64 raw_performace;
> > -       char *raw_unit;
> > -       int reserved;
> > -};
> > -
> >  struct int3403_cdev {
> >         struct thermal_cooling_device *cdev;
> >         unsigned long max_state;
>
diff mbox series

Patch

diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
index 86901f9f54d8..c094a422ded3 100644
--- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
@@ -25,17 +25,6 @@  struct int3403_sensor {
 	struct int34x_thermal_zone *int340x_zone;
 };
 
-struct int3403_performance_state {
-	u64 performance;
-	u64 power;
-	u64 latency;
-	u64 linear;
-	u64 control;
-	u64 raw_performace;
-	char *raw_unit;
-	int reserved;
-};
-
 struct int3403_cdev {
 	struct thermal_cooling_device *cdev;
 	unsigned long max_state;