Skip to contentSkip to conversation

power: dead struct removal

PATCH Applied [email protected] 4 participants 6 messages May 28, 2024 – Jun 5, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover power: dead struct removal

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

A couple of dead struct removals in drivers/power

Build tested.

Dr. David Alan Gilbert (2):
power: supply: bd99954: remove unused struct 'battery_data'
power: supply: ab8500: remove unused struct 'inst_curr_result_list'

 drivers/power/supply/ab8500_fg.c       | 5 -----
 drivers/power/supply/bd99954-charger.c | 7 -------
 2 files changed, 12 deletions(-)
Signature · 1 line
2.45.1
#1 lore raw

PATCH 1/2 power: supply: bd99954: remove unused struct 'battery_data'

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

'battery_data' is unused since the original
commit 0902f8366491 ("power: supply: Support ROHM bd99954 charger").

Remove it.

---
 drivers/power/supply/bd99954-charger.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/power/supply/bd99954-charger.c +0 -7
index 1ed1d9f99fb3..54bf88262510 100644
@@ -70,13 +70,6 @@
 
 #include "bd99954-charger.h"
 
-struct battery_data {
-	u16 precharge_current;	/* Trickle-charge Current */
-	u16 fc_reg_voltage;	/* Fast Charging Regulation Voltage */
-	u16 voltage_min;
-	u16 voltage_max;
-};
-
 /* Initial field values, converted to initial register values */
 struct bd9995x_init_data {
 	u16 vsysreg_set;	/* VSYS Regulation Setting */
Signature · 1 line
2.45.1
#3 lore raw

PATCH 2/2 power: supply: ab8500: remove unused struct 'inst_curr_result_list'

In reply to [email protected]

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

'inst_curr_result_list' is unused since the original commit 13151631b5bd ("ab8500-fg: A8500 fuel gauge driver").

Remove it.

---
 drivers/power/supply/ab8500_fg.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/power/supply/ab8500_fg.c +0 -5
index 2ccaf6116c09..270874eeb934 100644
@@ -149,11 +149,6 @@ struct ab8500_fg_flags {
 	bool batt_id_received;
 };
 
-struct inst_curr_result_list {
-	struct list_head list;
-	int *result;
-};
-
 /**
  * struct ab8500_fg - ab8500 FG device information
  * @dev:		Pointer to the structure device
Signature · 1 line
2.45.1
maintainer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] power: supply: bd99954: remove unused struct 'battery_data'

In reply to [email protected]
Quoted 8 lines · On 5/28/24 03:06, [email protected] wrote:

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

'battery_data' is unused since the original
commit 0902f8366491 ("power: supply: Support ROHM bd99954 charger").

Remove it.

Thanks!

Quoted 22 lines
---
  drivers/power/supply/bd99954-charger.c | 7 -------
  1 file changed, 7 deletions(-)
drivers/power/supply/bd99954-charger.c +0 -7
index 1ed1d9f99fb3..54bf88262510 100644
@@ -70,13 +70,6 @@
 
  #include "bd99954-charger.h"
 
-struct battery_data {
-	u16 precharge_current;	/* Trickle-charge Current */
-	u16 fc_reg_voltage;	/* Fast Charging Regulation Voltage */
-	u16 voltage_min;
-	u16 voltage_max;
-};
-
  /* Initial field values, converted to initial register values */
  struct bd9995x_init_data {
  	u16 vsysreg_set;	/* VSYS Regulation Setting */
Signature · 5 lines
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] power: supply: ab8500: remove unused struct 'inst_curr_result_list'

In reply to [email protected]
Quoted 8 lines · On Tue, May 28, 2024 at 2:06 AM <[email protected]> wrote:

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

'inst_curr_result_list' is unused since the original commit 13151631b5bd ("ab8500-fg: A8500 fuel gauge driver").

Remove it.

Yours,
Linus Walleij

#5 lore raw
In reply to [email protected]
Quoted 9 lines · On Tue, 28 May 2024 01:06:32 +0100, [email protected] wrote:

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

A couple of dead struct removals in drivers/power

Build tested.

[...]

Applied, thanks!

[1/2] power: supply: bd99954: remove unused struct 'battery_data'

      commit: ef1f6783fe03bee6acc15ef7084ab8b64c38d769
[2/2] power: supply: ab8500: remove unused struct 'inst_curr_result_list'
      commit: a5dd84f3bde0252cb39a3ecebbe71d7c2b405194

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>