Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp519094pxm; Wed, 23 Feb 2022 05:34:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1uuVHyaGDgCs+tnPp9smcojC+z1SDGHM+e/VYrBa+gK1wxfTYKSJ3EspdZjH+6kV3/gTt X-Received: by 2002:a63:70b:0:b0:373:9e98:d8f9 with SMTP id 11-20020a63070b000000b003739e98d8f9mr23257112pgh.242.1645623276102; Wed, 23 Feb 2022 05:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645623276; cv=none; d=google.com; s=arc-20160816; b=ggzlh3jhMOrGMOi6HzqSSwswLwJO4+pjTRt8OuDCHdhERXO9amtG7qIJ79IyFM+Sct HDnAB62HEvckjdVMidrCcJyJ8ASddWfmVBibbDaoYmCMoDv96zv29VVszi8O9Ua7AVGS 4yU/0Fpk9VpDIKm8o4wZRwWGwRBJz3ywf7aKofK/V9APflGBJCc54oeVBRVYhKhhsied 8k05Cvzn5Gqn3j0NSRDubphD9hG6Hu4XJmnmHh/lYuIuLF4HDB/pyw0K/YMNXxA9odXp zUDxk6JL/yOcaJTZx5P51cVWokruSnM028h6lOhaWuV/bPI3AheN+14yfowc34lUms5A a6KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=roSqU36Adr9386w74UOIuRbDpcTuMh3ZyBZQv5izzMU=; b=Erjv+//ryZnPF8cK9PxWLGpF1gwWCnk5rtbvdkKCZmMEbZRAAtmIyyZGKruoNi88jA VQnCAI8LBhWpGBAZhi3eGOm5O7MRgdYD0dAO/trgNWtRPqPe1vlFmqEtARXfUKiCi4rb qADbPORe2+wxuYWU5pTb+2NhffD27+v9waCU8s/4U5dfkzizW++4zhgOyv9gfgl7r1Cn tzbcmfGNDFtw+9ckx24i3JHS3kLU69E7L2ipR5f3NuhNhf1X3Q64/lTAxedF4Pm6hif0 KQeETw5Roz8QIMv2SDpYISJJd1zKSv70lYrGOIn2XFseWqOgTYKTk5AysAKpHHBFh5sC Q0QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=sgM9RgVw; 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=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8si39577016pls.416.2022.02.23.05.34.03; Wed, 23 Feb 2022 05:34:36 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=sgM9RgVw; 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=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238885AbiBWH4i (ORCPT + 99 others); Wed, 23 Feb 2022 02:56:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238846AbiBWH4f (ORCPT ); Wed, 23 Feb 2022 02:56:35 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C4BF6D4D7; Tue, 22 Feb 2022 23:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645602968; x=1677138968; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=roSqU36Adr9386w74UOIuRbDpcTuMh3ZyBZQv5izzMU=; b=sgM9RgVw/O8VKsnrYFEXMc1rQhWmB3SOvCf0ZmUtZGEX/SAnNEZ/hBq3 KrdT2hBugmRH4etKl+rUceZ8iWQT62czAwTGslDA19cYsafvQsyBJtXWg m1L/1WWjJ5Pyo6Rke58dd7m/mg7kaB7tiSulX/KgNqfqkbH1jd2Dld3GS g=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Feb 2022 23:56:08 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 23:56:07 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 22 Feb 2022 23:56:07 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 22 Feb 2022 23:56:01 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , Linus Walleij , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v9 3/7] pinctrl: qcom: Update macro name to LPI specific Date: Wed, 23 Feb 2022 13:25:28 +0530 Message-ID: <1645602932-6659-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1645602932-6659-1-git-send-email-quic_srivasam@quicinc.com> References: <1645602932-6659-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org Update NO_SLEW macro to LPI_NO_SLEW macro as this driver lpi specific. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Stephen Boyd --- drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c index 2f19ab4..3c15f80 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c @@ -40,7 +40,7 @@ #define LPI_GPIO_KEEPER 0x2 #define LPI_GPIO_PULL_UP 0x3 #define LPI_GPIO_DS_TO_VAL(v) (v / 2 - 1) -#define NO_SLEW -1 +#define LPI_NO_SLEW -1 #define LPI_FUNCTION(fname) \ [LPI_MUX_##fname] = { \ @@ -193,14 +193,14 @@ static const struct lpi_pingroup sm8250_groups[] = { LPI_PINGROUP(3, 8, swr_rx_clk, qua_mi2s_data, _, _), LPI_PINGROUP(4, 10, swr_rx_data, qua_mi2s_data, _, _), LPI_PINGROUP(5, 12, swr_tx_data, swr_rx_data, _, _), - LPI_PINGROUP(6, NO_SLEW, dmic1_clk, i2s1_clk, _, _), - LPI_PINGROUP(7, NO_SLEW, dmic1_data, i2s1_ws, _, _), - LPI_PINGROUP(8, NO_SLEW, dmic2_clk, i2s1_data, _, _), - LPI_PINGROUP(9, NO_SLEW, dmic2_data, i2s1_data, _, _), + LPI_PINGROUP(6, LPI_NO_SLEW, dmic1_clk, i2s1_clk, _, _), + LPI_PINGROUP(7, LPI_NO_SLEW, dmic1_data, i2s1_ws, _, _), + LPI_PINGROUP(8, LPI_NO_SLEW, dmic2_clk, i2s1_data, _, _), + LPI_PINGROUP(9, LPI_NO_SLEW, dmic2_data, i2s1_data, _, _), LPI_PINGROUP(10, 16, i2s2_clk, wsa_swr_clk, _, _), LPI_PINGROUP(11, 18, i2s2_ws, wsa_swr_data, _, _), - LPI_PINGROUP(12, NO_SLEW, dmic3_clk, i2s2_data, _, _), - LPI_PINGROUP(13, NO_SLEW, dmic3_data, i2s2_data, _, _), + LPI_PINGROUP(12, LPI_NO_SLEW, dmic3_clk, i2s2_data, _, _), + LPI_PINGROUP(13, LPI_NO_SLEW, dmic3_data, i2s2_data, _, _), }; static const struct lpi_function sm8250_functions[] = { @@ -435,7 +435,7 @@ static int lpi_config_set(struct pinctrl_dev *pctldev, unsigned int group, } slew_offset = g->slew_offset; - if (slew_offset == NO_SLEW) + if (slew_offset == LPI_NO_SLEW) break; mutex_lock(&pctrl->slew_access_lock); -- 2.7.4