Message ID | 20230405194721.821536-4-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp556530vqo; Wed, 5 Apr 2023 13:00:24 -0700 (PDT) X-Google-Smtp-Source: AKy350afXibZVylAtpKLuo5TZmcH7aydaB29Wd05zgSpG21OJADiedlf5+HCGxX0ZE6iH2tLm6rs X-Received: by 2002:a17:90b:3b81:b0:23f:a667:4efa with SMTP id pc1-20020a17090b3b8100b0023fa6674efamr8203860pjb.15.1680724824347; Wed, 05 Apr 2023 13:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680724824; cv=none; d=google.com; s=arc-20160816; b=O13Zbzgkl9VIDE3XU/jp1bVCex57I6UH/CmARBHZqj6LpxmXhkcwhfC9GuJTAr0/Il iac+9+NBNPq7OYmln1cnxx6ef8rGP/HhZmbVyB/boLCA4VeZhSAs1KEfJhkQApEXVhWr Wg8rFm1J6GxOZolkrxEZsT+eXnDQOaviPRgvEtCfjpLuN4Z6ER3/Ze3D8v9H3rl3ywq9 yuG4Sv6FKUJQeBZSUsUdHkUo7/73PdAYtr/8FRt67cDXZajIUVU+uGmHrHOlVUB1TVfE VbQUEAP7AxyeWMEVsi6qa31apqHvdr6eKG28aJ/bWyldV7Nf9WYi+K/Y4JqbQR2HcAFS Tkig== 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=7dt069c8NJSutavb/KHBQd046A/DpjlsUVruXM3SBao=; b=0uxq27Mia6Ih2Bxj/t/7fjNzqXBASPZfuwvRT1S9J7dGTou6NGsm4jdvhIFHVZc4Gu yYnGBJqNYU+e0w/f4SKEOEUou05OUuW2OrPQly/pSA7U50N2T68E8WZLgmo25ERIbHwK T9MeODk0tx71kPVk/NwtDn7R1NaJiPQPX7VeQGqAKdhQjWw6Ve3rt94erYySoezWnvIx fmRBVgCBRvN3e0S090JA++CYw2w1h6aAfj+x9CMJrX5uXIuNIE0dkaHlg3EBrn0/Zsb5 za6aw+EqbnCvZwrgpLHekRnH5dFE3DyhuvO7E6pHhCh+0E8uK6ml3ilPsexWMJ0oGZRt f3Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iI9APUue; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090a804b00b002366a535553si2012947pjw.107.2023.04.05.13.00.11; Wed, 05 Apr 2023 13:00:24 -0700 (PDT) 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=@collabora.com header.s=mail header.b=iI9APUue; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234131AbjDETsK (ORCPT <rfc822;lkml4gm@gmail.com> + 99 others); Wed, 5 Apr 2023 15:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233912AbjDETsD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Apr 2023 15:48:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB3B92; Wed, 5 Apr 2023 12:47:57 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id DDCF96602F91; Wed, 5 Apr 2023 20:47:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680724076; bh=lFOZ5esxl/tbYIcE53Cn4DHfBeM2O3R87VdL+HeZPkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iI9APUue2/K4FqjztLPgUI7rn2j0HfLHAk1LAw6Apgdha9JB6y0Gs5d2X6saWELs/ cAUONc+FPvzxUGIy38aWlD8toh0BtYXW6xhk+/YlILQqPb4iRWQJYQmxtdYkh5kZhX dx4gBQ7C/gjBf7cWEzdHKa6VENfwD2pfk0TtsePIrFo1VwF0dTXkOddGK5+1h82rXJ oAzV33h4zAd9tDs0AiUdLOsvjmFPK4qHrWXjKiPnw87qoCoQqpM7MyCpe7sOAnSOMT sxDy3xDAPdNydI1aYFZ166FwSHVmn6LB1wtLDqbmITRsuGoKRmeSnpsAdd8t71vpbp 36xykL0F44eRA== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiko Stuebner <heiko@sntech.de>, Bjorn Andersson <andersson@kernel.org>, Joseph Chen <chenjh@rock-chips.com>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH 3/8] regulator: fan53555: Fix wrong TCS_SLEW_MASK Date: Wed, 5 Apr 2023 22:47:16 +0300 Message-Id: <20230405194721.821536-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405194721.821536-1-cristian.ciocaltea@collabora.com> References: <20230405194721.821536-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762367713316873445?= X-GMAIL-MSGID: =?utf-8?q?1762367713316873445?= |
Series |
Add support for Rockchip RK860X regulators
|
|
Commit Message
Cristian Ciocaltea
April 5, 2023, 7:47 p.m. UTC
The support for TCS4525 regulator has been introduced with a wrong
ramp-rate mask, which has been defined as a logical expression instead
of a bit shift operation.
For clarity, fix it using GENMASK() macro.
Fixes: 914df8faa7d6 ("regulator: fan53555: Add TCS4525 DCDC support")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
drivers/regulator/fan53555.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 0754c370a21c..4d2104c3a077 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -61,7 +61,7 @@ #define TCS_VSEL1_MODE (1 << 6) #define TCS_SLEW_SHIFT 3 -#define TCS_SLEW_MASK (0x3 < 3) +#define TCS_SLEW_MASK GENMASK(4, 3) enum fan53555_vendor { FAN53526_VENDOR_FAIRCHILD = 0,