Message ID | ac427c3cca2cc783a82a3d8d62270c1ed139e8c4.1542019800.git.baolin.wang@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2993019ljp; Mon, 12 Nov 2018 02:53:19 -0800 (PST) X-Google-Smtp-Source: AJdET5c8QzN7Ewkr7jjt/iSl25AzQHrhIP7O3Ob8VyPyUz9pLKywb0ReKoRl6HoAaPSLKcEBr6su X-Received: by 2002:a17:902:6e17:: with SMTP id u23-v6mr457326plk.127.1542019998966; Mon, 12 Nov 2018 02:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542019998; cv=none; d=google.com; s=arc-20160816; b=l7sCPIIBOotcfP/YiA7hY6YfIOxazcZMbPNuDAiz6mIdlDvWL9Y58hIvERqujnI2Sq cJbz7VWaH6IlPYm/Yn/0qF66KdICGs5Q0BjK+yVhblhfWTV/hhQ/Id+FnjMS6Ze2PuGo /Ss1Y7TzGHkOIxy/HBIcxplibBiMevtEM/msDIRyPj4sUhkSUEqIeP/SaCXuv8xwXb5I mBJ6+0zXpJB5dGOJdBsNUQofkBZ+th0NHtIS/oHEfUK1JV/Ol5rJDofwgS7xD/0zYs86 jSUDcKS5RAbchEsNbysTE/U6Na5fW5+k6nx22VkNowOAKF6O/jngL/ouO0iuDulqOcZf hQEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=FwjO0MD8IjFvB0k6XnXwl4d6sfbxSCkhEER4jXSCxHs=; b=afIJ1gH30e5d1QiCM0+kpDis2lORjV3N0yjVNhPFssY2SVrJJYUh2VZch4tUG4wy1f UbVuW3Zdxj+xp1o9GDU5Ixp+0wAfsaYPrquugwiQP9RHaO56Gl3vy1P1ySqQA2sVBjHN Uqdpd3McKzrUxWbUoqu2DzELHuaQ35rDmwf/PqCdXRPBbHWPKCivCi5n/3fiZ6jo1g6i skzCPXjal8MksJ/3ueLMCbOT/WXfSgiLssHePPfv9QQjtaaU4mDF9m9OGnHKQMDtC4sq mVP1ZVDKwC34V5EQdr+NtiR9Mb7sPAyKh9ZfytOTDCcPHC7OZanKzaFaEMvanwSCKZMD 083w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VJXf+H8j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18-v6si19953457pfc.253.2018.11.12.02.53.18; Mon, 12 Nov 2018 02:53:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VJXf+H8j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729333AbeKLUp7 (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Mon, 12 Nov 2018 15:45:59 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36497 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729212AbeKLUp6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Nov 2018 15:45:58 -0500 Received: by mail-pg1-f196.google.com with SMTP id z17-v6so3916123pgv.3 for <linux-kernel@vger.kernel.org>; Mon, 12 Nov 2018 02:53:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=FwjO0MD8IjFvB0k6XnXwl4d6sfbxSCkhEER4jXSCxHs=; b=VJXf+H8jSteGTRTA3h1R6PCMsuMqpxwracH6HnMorGhA7ANZROK/7P0lQr5KXQlAmC nUpKF6EzXeTfLXCkD2rMAeirWVg5Deujwh4csS4URC12mu9yRWakMkSJbYVo7y4bik4G jXVyLvEskXCkNYENtjk6RuzoTWx8Rd14vshG8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=FwjO0MD8IjFvB0k6XnXwl4d6sfbxSCkhEER4jXSCxHs=; b=VnWM2bsHpdMuJQSXO5jjp0TxTOwWvoTtHCPdL+KctyOshSsR6k1NlL1sgxeffzDZUb x8gp9ChLW/lDrpQ5Qvo3mLo7n3jymeec7nUmbGsfCo1yPf7B5XIvyNV4/SFQH13Egp4R P80zGX8EICbTX8lGe7xYt7K4EY3iPYutzpSdWCyY26ylWFSLg5PRI1DvyDbULjxtTrm0 vxJtR/tWOJhkEwnfPgUBPZ711MPG0yH2aeAxy49MtMTvFU7cKT1k800konD5MgEybVfZ YMrRJgsVlROryj4CbvsOV/8ylNThQNZRd/5cG9IRFZf/6iL9UMsj4gll9UfO6B/C1FW1 3jnQ== X-Gm-Message-State: AGRZ1gJ5RVTglyJhh/VuA4f/v1ekxxOwwFyzRiAyCJ+ChdnD4EC0IMTN ksTQhFLjCQlWLby+FQcMQ589XGBOp2GXLkPT X-Received: by 2002:a63:1a4b:: with SMTP id a11mr404110pgm.254.1542019995522; Mon, 12 Nov 2018 02:53:15 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 186-v6sm17545705pfe.39.2018.11.12.02.53.12 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Nov 2018 02:53:14 -0800 (PST) From: Baolin Wang <baolin.wang@linaro.org> To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, baolin.wang@linaro.org, broonie@kernel.org Subject: [PATCH 4/4] power: supply: sc2731_charger: Free battery information Date: Mon, 12 Nov 2018 18:52:38 +0800 Message-Id: <ac427c3cca2cc783a82a3d8d62270c1ed139e8c4.1542019800.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <5d096dec07f6808a70edcfaad6e8f77039f21a9b.1542019800.git.baolin.wang@linaro.org> References: <5d096dec07f6808a70edcfaad6e8f77039f21a9b.1542019800.git.baolin.wang@linaro.org> In-Reply-To: <5d096dec07f6808a70edcfaad6e8f77039f21a9b.1542019800.git.baolin.wang@linaro.org> References: <5d096dec07f6808a70edcfaad6e8f77039f21a9b.1542019800.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/power/supply/sc2731_charger.c b/drivers/power/supply/sc2731_charger.c index 49b3f0c..335cb85 100644 --- a/drivers/power/supply/sc2731_charger.c +++ b/drivers/power/supply/sc2731_charger.c @@ -408,6 +408,8 @@ static int sc2731_charger_hw_init(struct sc2731_charger_info *info) vol_val = (term_voltage - 4200) / 100; else vol_val = 0; + + power_supply_put_battery_info(info->psy_usb, &bat_info); } /* Set charge termination current */
Free battery information in case of adding battery OCV tables. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> --- drivers/power/supply/sc2731_charger.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.7.9.5