power: dead struct removal
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
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
@@ -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
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
@@ -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
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
commit0902f8366491("power: supply: Support ROHM bd99954 charger").Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Thanks!
Quoted 22 lines
--- drivers/power/supply/bd99954-charger.c | 7 ------- 1 file changed, 7 deletions(-)drivers/power/supply/bd99954-charger.c +0
-7@@ -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! ~~
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 commit13151631b5bd("ab8500-fg: A8500 fuel gauge driver").Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Yours,
Linus Walleij
Sebastian Reichel
AppliedQuoted 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/powerBuild tested.
Signed-off-by Dr. David Alan Gilbert <[email protected]>[...]
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: a5dd84f3bde0252cb39a3ecebbe71d7c2b405194Best regards,
Signature · 1 line
Sebastian Reichel <[email protected]>