diff mbox

[v3,2/4] power: supply: bq27xxx: enable writing capacity values for bq27500

Message ID af9c1a4e95640e744a104780bfed269d0a6c63cb.1504162792.git.hns@goldelico.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

H. Nikolaus Schaller Aug. 31, 2017, 6:59 a.m. UTC
Tested on OpenPandora with bq27500.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 drivers/power/supply/bq27xxx_battery.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Sebastian Reichel Aug. 31, 2017, 8:38 a.m. UTC | #1
Hi,

On Thu, Aug 31, 2017 at 08:59:51AM +0200, H. Nikolaus Schaller wrote:
> Tested on OpenPandora with bq27500.
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---

Thanks, queued.

-- Sebastian

>  drivers/power/supply/bq27xxx_battery.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c
> index e80571cf7be1..5562f998330f 100644
> --- a/drivers/power/supply/bq27xxx_battery.c
> +++ b/drivers/power/supply/bq27xxx_battery.c
> @@ -653,15 +653,11 @@ enum bq27xxx_dm_reg_id {
>  #define bq2751x_dm_regs 0
>  #define bq2752x_dm_regs 0
>  
> -#if 0 /* not yet tested */
>  static struct bq27xxx_dm_reg bq27500_dm_regs[] = {
>  	[BQ27XXX_DM_DESIGN_CAPACITY]   = { 48, 10, 2,    0, 65535 },
>  	[BQ27XXX_DM_DESIGN_ENERGY]     = { }, /* missing on chip */
>  	[BQ27XXX_DM_TERMINATE_VOLTAGE] = { 80, 48, 2, 1000, 32767 },
>  };
> -#else
> -#define bq27500_dm_regs 0
> -#endif
>  
>  /* todo create data memory definitions from datasheets and test on chips */
>  #define bq27510g1_dm_regs 0
> -- 
> 2.12.2
>
diff mbox

Patch

diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c
index e80571cf7be1..5562f998330f 100644
--- a/drivers/power/supply/bq27xxx_battery.c
+++ b/drivers/power/supply/bq27xxx_battery.c
@@ -653,15 +653,11 @@  enum bq27xxx_dm_reg_id {
 #define bq2751x_dm_regs 0
 #define bq2752x_dm_regs 0
 
-#if 0 /* not yet tested */
 static struct bq27xxx_dm_reg bq27500_dm_regs[] = {
 	[BQ27XXX_DM_DESIGN_CAPACITY]   = { 48, 10, 2,    0, 65535 },
 	[BQ27XXX_DM_DESIGN_ENERGY]     = { }, /* missing on chip */
 	[BQ27XXX_DM_TERMINATE_VOLTAGE] = { 80, 48, 2, 1000, 32767 },
 };
-#else
-#define bq27500_dm_regs 0
-#endif
 
 /* todo create data memory definitions from datasheets and test on chips */
 #define bq27510g1_dm_regs 0