Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp615203pxb; Tue, 1 Feb 2022 07:04:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhN3estHxTMYVkcnKxMwSfVEiTYhVlqnerE7ncj+msuBLLWlMcd8LH53ojaotahcgtko73 X-Received: by 2002:a17:907:7f1a:: with SMTP id qf26mr15424171ejc.20.1643727843082; Tue, 01 Feb 2022 07:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643727843; cv=none; d=google.com; s=arc-20160816; b=EEfZIosJjeKr5o7AvFONeOgLQciUSD9tI5xspHwL67kbhrP+CQ9QdxwB+cMiLsPdTP TsYFmhuHAZeQozkWvx3BlTK3lr8j/4pmJhF0EVkAvv7R3Lid0I06WdH4Z7AZI0ZAnkMQ MNec2VM6MlOstmMyRJAZOYBvI6+7zcSFQQdDYUWlqwmJJV2iLDDoKu8JyKLXw+vG0r+x vTUyH7a4NxsQF/gpb8uZdPrF9f/NeimItSGEwnbZ793R7/v+1Kru7e67QB9DBOROofoJ 7rXk3cyMWoGgCQfvExMUThG8dZPHjI4kouKYvr/3054efKzTVc+PJsiTmMMO9ja2YJOV tv/A== 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=Jz1fNkwNL3m8bCXWTNGgBE6ANjGGJ2t0kezR8UmnVuk=; b=mMmNOeSTMUbV+K/jcRFuyfhlwjSDgIvK3C9fMo02Qa8yrA4iQU1gVIxXNm0SA04lfP 78fho92bdDx81c8gHDoqBis9zTd5ulNzTkq3X2wyJ1XJ9q8B6ntaY+5QXkiNiJE8RXzi fOrYvkUMcnzu5h1e2vAN/+UP4+otBtzFS1qj/dB7N+6tq0R3cFJ+jM7SjbFt0v1VNz2l 6U4uA2gv7jjAOLe2NU3X0gSRWRFj8e/eSpyxSCZijaF7SpHsvqNCgiFJCf4yqSRXLsCT LrYIbsm7OLRQCkLLtta5EEPBy6cbGgNP+Zquq+f3EEn1SHfAsOgZu9GQTCfSuH004wuV cqCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aYy+BZE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si10628499ejo.195.2022.02.01.07.03.36; Tue, 01 Feb 2022 07:04:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aYy+BZE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356178AbiA3UqT (ORCPT + 99 others); Sun, 30 Jan 2022 15:46:19 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:56536 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356167AbiA3UqR (ORCPT ); Sun, 30 Jan 2022 15:46:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643575576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jz1fNkwNL3m8bCXWTNGgBE6ANjGGJ2t0kezR8UmnVuk=; b=aYy+BZE3lamkIKZ3v0Qy6TZz52hUtSNA1qN4txzP7jJzOnzzeXzb/asXx7G5tp0U8b4+37 pyUFgtKGpj7PQPYPPjh/25YESNLNnjCYwo5gkWcLaiF9Y4G8jEvFuhhUHYFPVWmstUyBjw BzGxsFnbuyvScnkBYKHBsMU2Ehqc3OA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-479-PHNFiIKUPPSLug2BVslikQ-1; Sun, 30 Jan 2022 15:46:13 -0500 X-MC-Unique: PHNFiIKUPPSLug2BVslikQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 081C91006AA0; Sun, 30 Jan 2022 20:46:11 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id 90FFC61093; Sun, 30 Jan 2022 20:46:07 +0000 (UTC) From: Hans de Goede To: "Rafael J . Wysocki" , Mika Westerberg , Mark Gross , Andy Shevchenko , Wolfram Sang , Lee Jones , Sebastian Reichel , MyungJoo Ham , Chanwoo Choi , Ard Biesheuvel Cc: Hans de Goede , Len Brown , linux-acpi@vger.kernel.org, Yauhen Kharuzhy , Tsuchiya Yuto , Fabio Aiuto , platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: [PATCH v4 02/20] power: supply: bq25890: Rename IILIM field to IINLIM Date: Sun, 30 Jan 2022 21:45:39 +0100 Message-Id: <20220130204557.15662-3-hdegoede@redhat.com> In-Reply-To: <20220130204557.15662-1-hdegoede@redhat.com> References: <20220130204557.15662-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yauhen Kharuzhy Rename the Input Current Limit field in the REG00 from IILIM to IINLIM accordingly with the bq2589x datasheet. This is just cosmetical change to reduce confusion. Signed-off-by: Yauhen Kharuzhy Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- drivers/power/supply/bq25890_charger.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index e62da9dc4f35..fb987579d05a 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -40,7 +40,7 @@ static const char *const bq25890_chip_name[] = { }; enum bq25890_fields { - F_EN_HIZ, F_EN_ILIM, F_IILIM, /* Reg00 */ + F_EN_HIZ, F_EN_ILIM, F_IINLIM, /* Reg00 */ F_BHOT, F_BCOLD, F_VINDPM_OFS, /* Reg01 */ F_CONV_START, F_CONV_RATE, F_BOOSTF, F_ICO_EN, F_HVDCP_EN, F_MAXC_EN, F_FORCE_DPM, F_AUTO_DPDM_EN, /* Reg02 */ @@ -153,7 +153,7 @@ static const struct reg_field bq25890_reg_fields[] = { /* REG00 */ [F_EN_HIZ] = REG_FIELD(0x00, 7, 7), [F_EN_ILIM] = REG_FIELD(0x00, 6, 6), - [F_IILIM] = REG_FIELD(0x00, 0, 5), + [F_IINLIM] = REG_FIELD(0x00, 0, 5), /* REG01 */ [F_BHOT] = REG_FIELD(0x01, 6, 7), [F_BCOLD] = REG_FIELD(0x01, 5, 5), @@ -256,7 +256,7 @@ enum bq25890_table_ids { /* range tables */ TBL_ICHG, TBL_ITERM, - TBL_IILIM, + TBL_IINLIM, TBL_VREG, TBL_BOOSTV, TBL_SYSVMIN, @@ -322,7 +322,7 @@ static const union { /* TODO: BQ25896 has max ICHG 3008 mA */ [TBL_ICHG] = { .rt = {0, 5056000, 64000} }, /* uA */ [TBL_ITERM] = { .rt = {64000, 1024000, 64000} }, /* uA */ - [TBL_IILIM] = { .rt = {100000, 3250000, 50000} }, /* uA */ + [TBL_IINLIM] = { .rt = {100000, 3250000, 50000} }, /* uA */ [TBL_VREG] = { .rt = {3840000, 4608000, 16000} }, /* uV */ [TBL_BOOSTV] = { .rt = {4550000, 5510000, 64000} }, /* uV */ [TBL_SYSVMIN] = { .rt = {3000000, 3700000, 100000} }, /* uV */ @@ -528,11 +528,11 @@ static int bq25890_power_supply_get_property(struct power_supply *psy, break; case POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT: - ret = bq25890_field_read(bq, F_IILIM); + ret = bq25890_field_read(bq, F_IINLIM); if (ret < 0) return ret; - val->intval = bq25890_find_val(ret, TBL_IILIM); + val->intval = bq25890_find_val(ret, TBL_IINLIM); break; case POWER_SUPPLY_PROP_VOLTAGE_NOW: -- 2.33.1