Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751639AbdH2UMy (ORCPT ); Tue, 29 Aug 2017 16:12:54 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.163]:20342 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbdH2UMw (ORCPT ); Tue, 29 Aug 2017 16:12:52 -0400 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKID81PEGXJZ8= X-RZG-CLASS-ID: mo00 From: "H. Nikolaus Schaller" To: Sebastian Reichel , Liam Breck Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , "Andrew F. Davis" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel , kernel@pyra-handheld.com, "H. Nikolaus Schaller" Subject: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421 Date: Tue, 29 Aug 2017 22:10:47 +0200 Message-Id: X-Mailer: git-send-email 2.12.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 771 Lines: 22 Tested on Pyra prototype with bq27421. Signed-off-by: H. Nikolaus Schaller --- drivers/power/supply/bq27xxx_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c index b6c3120ca5ad..e3c878ef7c7e 100644 --- a/drivers/power/supply/bq27xxx_battery.c +++ b/drivers/power/supply/bq27xxx_battery.c @@ -688,7 +688,7 @@ static struct bq27xxx_dm_reg bq27545_dm_regs[] = { #define bq27545_dm_regs 0 #endif -#if 0 /* not yet tested */ +#if 1 /* tested on Pyra */ static struct bq27xxx_dm_reg bq27421_dm_regs[] = { [BQ27XXX_DM_DESIGN_CAPACITY] = { 82, 10, 2, 0, 8000 }, [BQ27XXX_DM_DESIGN_ENERGY] = { 82, 12, 2, 0, 32767 }, -- 2.12.2