From patchwork Tue Aug 29 20:10:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 9928233 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2392160380 for ; Tue, 29 Aug 2017 20:12:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16C3528634 for ; Tue, 29 Aug 2017 20:12:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BB2A28A55; Tue, 29 Aug 2017 20:12:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F5D828634 for ; Tue, 29 Aug 2017 20:12:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751270AbdH2UMx (ORCPT ); Tue, 29 Aug 2017 16:12:53 -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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1504037571; s=domk; d=goldelico.com; h=Date:Subject:Cc:To:From; bh=I3EFqSYzVpycqhW2fUS6/55SS9cjpQRapS+sqgCnsyE=; b=G4bffWcYwOIvTfP8SryrYm7QM1y1QgHPQAM3lkX7wnChdKdNVjKwegj/4k/0rKHQzm 6k1P28iJAX3rA8aEP5NAz73VIPf/kHAYjsGD3KPqRa2zooaG70M8mmiUTZpfSwZLyOMw WQIv2L5timR6gpmBcLoGpX3nRM26x9+zOwbUw= X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKID81PEGXJZ8= X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (p57AE0D66.dip0.t-ipconnect.de [87.174.13.102]) by smtp.strato.de (RZmta 41.4 DYNA|AUTH) with ESMTPSA id u0bacft7TKCnhpb (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 29 Aug 2017 22:12:49 +0200 (CEST) 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 },