Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2895519yba; Mon, 15 Apr 2019 23:42:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzF5w3mngPGzskmMbJd0pMs33+BKYP+EWOtWC6J/nK51sZMA6iAflwfNTmYkNQ5Bj+PNCia X-Received: by 2002:a65:5286:: with SMTP id y6mr73878261pgp.79.1555396920937; Mon, 15 Apr 2019 23:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555396920; cv=none; d=google.com; s=arc-20160816; b=CWR/W8GiV4a5CEdnQIoYsA+OAy1qhvF5toEm+RnPrQPbExO/0cwJrP2+M4Z8Z10F2N wHn9lWsAyHX8qMXAnKOVF1qDV5TO82WpkpJCtFPVyF0/o/QVdGxni+cUnoTFDjDrovVT Mi6rbYvzfnX6Yq0uLsrb2zDP4wikXHcIrja4/SM+Kv8Zl+uMufRI0MKNY+fDH0V+KTxq kWKs+5HuYwinkI8gD/oo0BshsKqZDR07+RoHelkFBdB0BWhZQydrXXp/7927V+GFvibB i/vqEEMdp6GhubsbZH3hbk2Xx3rY1mudk+GgvUoxyuuYIqeMu7EX8iGU/9lotSWARVmr 5Ebw== 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=uITXEgzdDdpY7w5ZZyJmvrrbvsb8PzMAD5OsElKuiLQiNANPj4vz7FvU6eXqnzUZ6t RGE03BLOCZ3P9rx1fFzNCeZUx5HOf/eOIQ/+4LAbzX318gkZfkumPXHg6kM+fRvV86cv oCV2DR6uzYbQ/zQYipRm/T1OQh7F36WfQqu59MkZlEEF4HTP1x5nAW1Zq/Wz4rd/QSNg bCaQCgOjQ8wvV1CYPaFnEZpc6LWZTpm8Mv/gXV8ZsQ4Izcokk7qpT+cv6uBu8K+tZhKc w1sD3XpyWFcpxNCzJu3/mcPkZXZKf9BdFJicIMxq7mDPiAYZUxtPCyL/1LEY87mxmksz BWMg== 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 v9si24964837pgr.167.2019.04.15.23.41.45; Mon, 15 Apr 2019 23:42:00 -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 S1728511AbfDPGkc (ORCPT + 99 others); Tue, 16 Apr 2019 02:40:32 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:33982 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfDPGk3 (ORCPT ); Tue, 16 Apr 2019 02:40:29 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 8C7A95FD9F; Tue, 16 Apr 2019 14:40:25 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Sebastian Reichel Cc: Chen-Yu Tsai , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede Subject: [PATCH v4 2/7] power: supply: axp20x_usb_power: Fix typo in VBUS current limit macros Date: Tue, 16 Apr 2019 14:40:19 +0800 Message-Id: <20190416064024.20414-3-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416064024.20414-1-wens@kernel.org> References: <20190416064024.20414-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