From patchwork Thu Aug 31 06:59:51 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: 9931319 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 559D7602F0 for ; Thu, 31 Aug 2017 07:00:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A8781FF7F for ; Thu, 31 Aug 2017 07:00:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F27C28863; Thu, 31 Aug 2017 07:00:47 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 E46CB1FF7F for ; Thu, 31 Aug 2017 07:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750898AbdHaHAF (ORCPT ); Thu, 31 Aug 2017 03:00:05 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]:19684 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbdHaG77 (ORCPT ); Thu, 31 Aug 2017 02:59:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1504162797; s=domk; d=goldelico.com; h=References:In-Reply-To:References:In-Reply-To:Date:Subject:Cc:To: From; bh=ieqAAq0bAiOXQZcSlJzxfVtqiq+GINYwfQfXValpyq8=; b=R8yX4RBlBe9PLUzhhg8iU0wk7Z4nE4yheUTdngfarAAB8WrOjsuRJ83lbRYs23P6Zv 3Y/TaULyjd26oP2x6+jXoU4vof2yN2ooUMv0b9kgM5eDKMOab7HTazH3k5GNqGxR5QpT qglirA0V864h1+A39Qv5J1CuxBtjUkqzQEw4E= X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKID0oJ4MK X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (p57AE0334.dip0.t-ipconnect.de [87.174.3.52]) by smtp.strato.de (RZmta 41.4 DYNA|AUTH) with ESMTPSA id f066d8t7V6xuPvm (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); Thu, 31 Aug 2017 08:59:56 +0200 (CEST) From: "H. Nikolaus Schaller" To: afd@ti.com, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , Russell King Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gta04-owner@goldelico.com, marek@goldelico.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, "H. Nikolaus Schaller" Subject: [PATCH v3 2/4] power: supply: bq27xxx: enable writing capacity values for bq27500 Date: Thu, 31 Aug 2017 08:59:51 +0200 Message-Id: X-Mailer: git-send-email 2.12.2 In-Reply-To: References: In-Reply-To: References: 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 OpenPandora with bq27500. Signed-off-by: H. Nikolaus Schaller --- 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