diff mbox series

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

Message ID 20240528000634.196707-2-linux@treblig.org (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series power: dead struct removal | expand

Commit Message

Dr. David Alan Gilbert May 28, 2024, 12:06 a.m. UTC
From: "Dr. David Alan Gilbert" <linux@treblig.org>

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

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/power/supply/bd99954-charger.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Matti Vaittinen May 28, 2024, 5:36 a.m. UTC | #1
On 5/28/24 03:06, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'battery_data' is unused since the original
> commit 0902f8366491 ("power: supply: Support ROHM bd99954 charger").
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>

Thanks!

> ---
>   drivers/power/supply/bd99954-charger.c | 7 -------
>   1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c
> index 1ed1d9f99fb3..54bf88262510 100644
> --- a/drivers/power/supply/bd99954-charger.c
> +++ b/drivers/power/supply/bd99954-charger.c
> @@ -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 */
diff mbox series

Patch

diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c
index 1ed1d9f99fb3..54bf88262510 100644
--- a/drivers/power/supply/bd99954-charger.c
+++ b/drivers/power/supply/bd99954-charger.c
@@ -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 */