Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp188671imj; Thu, 14 Feb 2019 18:16:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZjgsG9Z4wZCXFvP1hdw6niLCwS/Iku6zgL4iUneJUYBdMAjaInm7V72Ovqe1jxC5DDplLL X-Received: by 2002:a62:2f06:: with SMTP id v6mr7489439pfv.216.1550197018285; Thu, 14 Feb 2019 18:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197018; cv=none; d=google.com; s=arc-20160816; b=p4+vahHKcg8RMK7bzC0IfLrU/z5SWmsPzTf/XmbPytkWsM29FrksJ5i3vakR8B6Ujz qlJ+MlkAB3NV/jyaJmrzHwfpa1pCGYxcR28YOB5s5FHYyJu90q6tOYSML1V0qcgFBmz1 8ZPmaQ9M3ZAuUEvOkztqagtLvEtj0N5wF2kydjoR/DcJTm5UNoz718j7aKLjUIXYcM3o cQS/LbkEaGotCSfqldUBFlDoHs7IcpxXTTE8vUbbReLVFF37m02X4w932iLOdXh4Qz9X YK5rVFl45CNcHDtKFefyV0O3CNLY7cUJOVGy4S3pmqQhqQPcwCssQefyFaWkoIsZdqI2 HlwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:date:cc:to:from:message-id; bh=QLJ1ix3JOw2wZ8R6uMGaSPBc6H4I/ow2qAKUiyDT6fQ=; b=xhgdMtxEonGVlgaq4EiPpcoI4sfTQZc2xA0jXrWDVcXwy8ezEJnXSROL33yf3w4V+5 hZxw+D08Ds4/ZT9CSQX6jDVgYWDvxX4myFA1fv++lI0fIPjgvXX+WWTo8BJzBzcoS+Ug uX3YaXXM0cHydNsLoqv4ZrynTB0K8WYcjZqhPotOxY09KwkWraXKHJF6ffyyWQ0jC9VE 0MKcmOHrM5v5J7HuSYUgZ4C7ydyJUe6pAnx9RjYe6DCfvdcczKyVROcYAv65r+nGRlWp /UwTEW00hhSOu0/k5i6C6R8zJuRXovvyMyegD3gorwRqI0/+0Q1NrDZmL7bel2DV6/Ra pmAA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w32si3899479pga.337.2019.02.14.18.16.42; Thu, 14 Feb 2019 18:16:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440168AbfBNV3p (ORCPT + 99 others); Thu, 14 Feb 2019 16:29:45 -0500 Received: from customer-85-204-195-167.ip4.gigabit.dk ([85.204.195.167]:60124 "EHLO customer-2a00-7660-0ca7-0000-0000-0000-0000-0b1b.ip6.gigabit.dk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388241AbfBNV3p (ORCPT ); Thu, 14 Feb 2019 16:29:45 -0500 X-Greylist: delayed 306 seconds by postgrey-1.27 at vger.kernel.org; Thu, 14 Feb 2019 16:29:44 EST Received: by customer-2a00-7660-0ca7-0000-0000-0000-0000-0b1b.ip6.gigabit.dk (Postfix, from userid 1000) id F21E74AC6E; Thu, 14 Feb 2019 22:24:37 +0100 (CET) Message-Id: <641301f26ac895e39b15d62a2ba069b853ab5b09.1550178066.git.rask@formelder.dk> From: Rask Ingemann Lambertsen To: Liam Girdwood , Mark Brown , Chen-Yu Tsai , linux-kernel@vger.kernel.org Cc: Olliver Schinagl , linux-arm-kernel@lists.infradead.org Date: Thu, 14 Feb 2019 16:47:41 +0100 Subject: [PATCH] regulator: axp20x: Fix AXP806 dcdcb copy/paste bug Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An obvious copy/paste bug was introduced with the conversion to sybolic register masks. The result is contradictory output like this: vcc-dram: Bringing 1100000uV into 1450000-1450000uV vcc-dram: 1450 <--> 1550 mV at 1050 mV This patch fixes it: vcc-dram: 1450 <--> 1550 mV at 1500 mV Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks") Signed-off-by: Rask Ingemann Lambertsen --- drivers/regulator/axp20x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index 1b51d557ab55..f03cae440f7f 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -791,7 +791,7 @@ static const struct regulator_desc axp806_regulators[] = { AXP806_DCDCA_V_CTRL, AXP806_DCDCA_V_CTRL_MASK, AXP806_PWR_OUT_CTRL1, AXP806_PWR_OUT_DCDCA_MASK), AXP_DESC(AXP806, DCDCB, "dcdcb", "vinb", 1000, 2550, 50, - AXP806_DCDCB_V_CTRL, AXP806_DCDCB_V_CTRL, + AXP806_DCDCB_V_CTRL, AXP806_DCDCB_V_CTRL_MASK, AXP806_PWR_OUT_CTRL1, AXP806_PWR_OUT_DCDCB_MASK), AXP_DESC_RANGES(AXP806, DCDCC, "dcdcc", "vinc", axp806_dcdca_ranges, AXP806_DCDCA_NUM_VOLTAGES, -- 2.20.1