Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp462528img; Thu, 21 Mar 2019 01:52:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjlF+bawfUULvXEyPcpe4EaakOw6IVsx0xFAxhIki/iD34nWgg/ahQzztCzbrGG3TbKnuv X-Received: by 2002:a63:5b4b:: with SMTP id l11mr2282923pgm.82.1553158356195; Thu, 21 Mar 2019 01:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553158356; cv=none; d=google.com; s=arc-20160816; b=zsmaz7SyzbGKpIjJ84BRS0MrfdnM0MGTvw59aRIYNt/dVskSb28YG59IZBEY8K543x JKk/swPurLdKSk6xwNBxU1RBj9JAQh+3NY4Fk5/s0glgE6EDHt6DRe6c6KizCKgYoZLy HrOiP0Bx9VCM3ALhI4tZj/A6fV0hmTL8mLgVMOFzhtLqkHJZPW3owGmdmAvU4JeoiOl8 PPhfsCJHGibaFQaCPxfIFk3kxEkiLuTHKh0Khl3lH16Bkrd5+71hMWV/CIBYZ6CCArgg zBbEG134LdUPTBJNPZxel0ALPVVrqJpYTp3Ek1QITNcwK7GX0xgsp6gvp4SvbfXG+r/w w45g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=A7D0Db5cgBgfUJim/CmZ+w2ruu0wkN0+IIwT0vigci8=; b=vfu9uizTyIIfQa85PzQn/pQ5WZnzCR9KpJaiUpSSJAqsbXwN2ux9iqNQHnzyThvuXS GEBis35EwbsaegiFwycYsIyFcr0jxKSJW2JtRHGHudtl23NvaUsxYxwlHh2pwswkvVr8 xIt+nuF1ux+C9NOYP5iyDkUAMgqye/FLgGJncO1tsI4At19FdpqT6I1ePojIfxERMEFO mxRvhTyhHpYmyUWCgivafOF7r0cXdCIyrdgPrplQ3tTgLOllo6tFn42YEUCQsUJPlDzm 0EB/cwD5dt9ojRP+8N6U2iTh9YyF+Gb64VY/VVLFrDVJCP9Ks5SE1+rf0obr4h9Z+epr /4xg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61si635918plb.22.2019.03.21.01.52.21; Thu, 21 Mar 2019 01:52:36 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728236AbfCUIt6 (ORCPT + 99 others); Thu, 21 Mar 2019 04:49:58 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:41450 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728039AbfCUItD (ORCPT ); Thu, 21 Mar 2019 04:49:03 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 2F8BE5FDB8; Thu, 21 Mar 2019 16:48:59 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Lee Jones , Sebastian Reichel Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede Subject: [PATCH v3 2/9] power: supply: axp20x_usb_power: Fix typo in VBUS current limit macros Date: Thu, 21 Mar 2019 16:48:43 +0800 Message-Id: <20190321084850.20769-3-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321084850.20769-1-wens@kernel.org> References: <20190321084850.20769-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The VBUS current limit value macros have VBUS typed as VBUC, while the bitmask macro is named correctly. Fix it. Fixes: 69fb4dcada77 ("power: Add an axp20x-usb-power driver") Signed-off-by: Chen-Yu Tsai --- drivers/power/supply/axp20x_usb_power.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c index f52fe77edb6f..cd9b90d79839 100644 --- a/drivers/power/supply/axp20x_usb_power.c +++ b/drivers/power/supply/axp20x_usb_power.c @@ -36,10 +36,10 @@ #define AXP20X_VBUS_VHOLD_MASK GENMASK(5, 3) #define AXP20X_VBUS_VHOLD_OFFSET 3 #define AXP20X_VBUS_CLIMIT_MASK 3 -#define AXP20X_VBUC_CLIMIT_900mA 0 -#define AXP20X_VBUC_CLIMIT_500mA 1 -#define AXP20X_VBUC_CLIMIT_100mA 2 -#define AXP20X_VBUC_CLIMIT_NONE 3 +#define AXP20X_VBUS_CLIMIT_900mA 0 +#define AXP20X_VBUS_CLIMIT_500mA 1 +#define AXP20X_VBUS_CLIMIT_100mA 2 +#define AXP20X_VBUS_CLIMIT_NONE 3 #define AXP20X_ADC_EN1_VBUS_CURR BIT(2) #define AXP20X_ADC_EN1_VBUS_VOLT BIT(3) @@ -107,19 +107,19 @@ static int axp20x_usb_power_get_property(struct power_supply *psy, return ret; switch (v & AXP20X_VBUS_CLIMIT_MASK) { - case AXP20X_VBUC_CLIMIT_100mA: + case AXP20X_VBUS_CLIMIT_100mA: if (power->axp20x_id == AXP221_ID) val->intval = -1; /* No 100mA limit */ else val->intval = 100000; break; - case AXP20X_VBUC_CLIMIT_500mA: + case AXP20X_VBUS_CLIMIT_500mA: val->intval = 500000; break; - case AXP20X_VBUC_CLIMIT_900mA: + case AXP20X_VBUS_CLIMIT_900mA: val->intval = 900000; break; - case AXP20X_VBUC_CLIMIT_NONE: + case AXP20X_VBUS_CLIMIT_NONE: val->intval = -1; break; } -- 2.20.1