Skip to contentSkip to conversation

thermal: int3403: remove unused struct 'int3403_performance_state'

PATCH Applied [email protected] 3 participants 3 messages May 29, 2024 – Jun 7, 2024 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: int3403: remove unused struct 'int3403_performance_state'

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

---
 .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 -----------
 1 file changed, 11 deletions(-)
drivers/thermal/intel/int340x_thermal/int3403_thermal.c +0 -11
index 86901f9f54d8..c094a422ded3 100644
@@ -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;
Signature · 1 line
2.45.1
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Wed, 2024-05-29 at 18:53 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

Quoted 28 lines

---
 .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 --------- --

 1 file changed, 11 deletions(-)
drivers/thermal/intel/int340x_thermal/int3403_thermal.c +0 -0
index 86901f9f54d8..c094a422ded3 100644
@@ -25,17 +25,6 @@ struct int3403_sensor {
         struct int34x_thermal_zone *int340x_zone;
  };

drivers/thermal/intel/int340x_thermal/int3403_thermal.c +0 -11
-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;

maintainer Applied
#2 lore raw
Quoted 4 lines · Rui
Quoted 2 lines · On Wed, 2024-05-29 at 18:53 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

Quoted 8 lines
Quoted 6 lines

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

Remove it.

Applied as 6.11 material, thanks!

Quoted 29 lines
Quoted 28 lines
---
 .../thermal/intel/int340x_thermal/int3403_thermal.c   | 11 ---------
--
 1 file changed, 11 deletions(-)
drivers/thermal/intel/int340x_thermal/int3403_thermal.c +0 -11
index 86901f9f54d8..c094a422ded3 100644
@@ -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;