Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6146531pxb; Mon, 14 Feb 2022 16:52:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJygEK1SbYATTx/ENhR5JAqVa8IT2a0J9SRrKQqVw83yaSr72daWRgbZknxC8qb2aDFJHGos X-Received: by 2002:a05:6a00:80d:: with SMTP id m13mr1761844pfk.63.1644886343817; Mon, 14 Feb 2022 16:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644886343; cv=none; d=google.com; s=arc-20160816; b=pt/rAhcLLK/E59gHDfDiRJ5JVCVyTEp3v1Y+e8712c/HvBVvQ6B1Yga8q5iwLsGzWF InEnHBHi3kF5wO7FEOC4rlfHfFEVK0MB5ZmRtNkN+tYYaky8lrkJVnlwCdn2uC2i5h+k wMsbuJea42AiptOa5T0pLcLuUGapehm+fYfkiLas1vNk6s9gthzTcWWb3X15w6Cu21kL LRtD/w81PPqgt6neYCCxHPGYDjg8f40kSf4E2GyC7MwbIxquy8IpwKOZcaVv8uqCyk8K vFn+f/2IJfj9rUylfO6MS7Wc2kbLLlgZYHwmeII+iFtsvBNfML0FVkWUy9dVKHfapZoY /R+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ThW2rdxPPGMSDnk0VDFSlrn59RuYijZAMFSNrBmICJU=; b=brZ7N8/UMZRYbNKAV3pEZuMZ6YXXyUxIHMjeq7YbEQoSp978SU/uLUFRueVMdcblZo 8brqu7uvg0Ag8qlowMdjHu9Bjsyyl2426YV09oGzZP5bg8w4UF7rkJtGSNiRWgBz7sZK RNM9CwIUqDU8ajIzsV5u5saq1MmdyPXH0EfynscpPRssXkQoTIUeD8IOGMrpD3g7CKcU f6N92aKxgYlhAbtdKdmVO72R9xD3GhTHaTc+bwxarwblgqLdjiTn2yMR0VQXnYpXh0f+ ZhZxtbd0A/UioAIAa4Z1SBg3P73U+R+ynJv91g0b82cOww7qH+EOdUG6WTiJYQAw10aw D6KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="YF38/BZS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on1si14497609pjb.151.2022.02.14.16.52.08; Mon, 14 Feb 2022 16:52:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="YF38/BZS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbiBOAIj (ORCPT + 99 others); Mon, 14 Feb 2022 19:08:39 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232386AbiBOAIg (ORCPT ); Mon, 14 Feb 2022 19:08:36 -0500 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94AD797BAD; Mon, 14 Feb 2022 16:08:26 -0800 (PST) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21ED8O50007511; Mon, 14 Feb 2022 18:08:19 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=ThW2rdxPPGMSDnk0VDFSlrn59RuYijZAMFSNrBmICJU=; b=YF38/BZSPJOVnBXd/IZ6rjuPBMkqi6MWxKe5fwYwCGOV/0SBtEYzcIUzXEMfgwUL7dzb NalfRHMfgADNiz5f6Q2NrJvmp1ihxiARmBJJqwzXc/CseX7RW90xl2rVPybrVfwo6TWn m05WmMf138VudKVgV6rxzgSRKyLmkd7zWABe6DLbYE4+w8QMgEIcJUpAf0WXSPmk4yEe OsOCX/0lLiyo9GrNFPKbIPibAkVEjRxa1Wp4Rt6HkcWAbN5d08BRVuVJD7Nl3AQk8WoW yHCx4yNvXs6Yd7B2rgfXzCpXLiRT8cK8Ck+ih0MEtusFmjN7z1YOnPJmbnzT8k//R5Ya rA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3e7qq18nh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 14 Feb 2022 18:08:19 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Tue, 15 Feb 2022 00:08:17 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Tue, 15 Feb 2022 00:08:17 +0000 Received: from ricardo-lws.crystal.cirrus.com (ricardo-lws.ad.cirrus.com [141.131.206.19]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1BA1BB16; Tue, 15 Feb 2022 00:08:15 +0000 (UTC) From: Ricardo Rivera-Matos To: , , , CC: Ricardo Rivera-Matos Subject: [PATCH v3 2/3] power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS Date: Mon, 14 Feb 2022 18:07:57 -0600 Message-ID: <20220215000758.803501-3-rriveram@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215000758.803501-1-rriveram@opensource.cirrus.com> References: <20220215000758.803501-1-rriveram@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: vbwslcIKQnsgtNm3GOGD70hMUuHiKEsH X-Proofpoint-GUID: vbwslcIKQnsgtNm3GOGD70hMUuHiKEsH X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch remaps the bypass operation from POWER_SUPPLY_CHARGE_TYPE_FAST to POWER_SUPPLY_CHARGE_TYPE_BYPASS. Signed-off-by: Ricardo Rivera-Matos --- drivers/power/supply/bq25980_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/bq25980_charger.c index 0008c229fd9c..296b221a70fd 100644 --- a/drivers/power/supply/bq25980_charger.c +++ b/drivers/power/supply/bq25980_charger.c @@ -764,7 +764,7 @@ static int bq25980_get_charger_property(struct power_supply *psy, if (!state.ce) val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; else if (state.bypass) - val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; + val->intval = POWER_SUPPLY_CHARGE_TYPE_BYPASS; else if (!state.bypass) val->intval = POWER_SUPPLY_CHARGE_TYPE_STANDARD; break; -- 2.25.1