Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp170014pxb; Thu, 17 Feb 2022 01:06:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxizLICpg4X4c8foHMBcPngMrR2oBovHqLa99E5fbn1aOedLsUf15olrgb4Qo4Gth0AnNM X-Received: by 2002:a17:906:fa02:b0:6ce:78fb:2b94 with SMTP id lo2-20020a170906fa0200b006ce78fb2b94mr1531536ejb.396.1645088799696; Thu, 17 Feb 2022 01:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645088799; cv=none; d=google.com; s=arc-20160816; b=fwa2Atp6ZrmT0bIwzeuvBV+ODZ47/gTOGIMemjoy20Emwdo0KAp0Q1Zbgs2Z25SXZE V6OaKmp4r3KEmguYIZymUm3/9nwSaBYb4MQWzF0Bva+ylHgJzkmKwCksLytkzXP4s7/S j5onvcT4bYNcPeUN9bDskoF5avIFXCkQ0h3gYZnsgPBgvJCpSo/H5oy+uCaUS2bufDrV iqPvsDpGUJNo26secV6G9NF2CbtCylW9zuoKf2UaNPfHzYJhpApGhzsAub6Ak3xl3wpb 2FlfNIpvg7yFxBcY5+fdVxuHxgk769drUurFoYv8EsPlMaJZ6TZCyJP/SfIZ87yGDukC oU7g== 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=YZurcpWQNBUfcx5yi8Gv6PFqBA2E9U2gZNOwFZGqaFE=; b=qDX8aTdSsmWHy/aoWwcDXzTSN7Bea9MPJZYHRioVgD0m/4pCa8j/WSu712yfQWDChV A0EFGGaFgxxh57Sw7bzScuoJ/wXDSbzcGwCv5JIi2yY+xMtd/rvh41LnXZEIrKZ3LvDQ /hcESd2LfTIfYbP6dihqlhXM/t6x1128NfSQ9C/2znjYHRs+FrzTc8ubqlnVJ+6OygLo tTQQOZZIS9W7VYEMs0GLEMwr7KerMvXOJG8swci3gSbQi6ZtHqNRrtCZ1552NU/GTis/ lpf/iQH8EJztQ7PFGNJ3FnYI9GcEsyO5dOdGlX2aDGBWUeQ4K2B3cRW7KM5bp5zrb0D6 I+RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QqizKOAn; 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 l6si1630463ejo.931.2022.02.17.01.06.15; Thu, 17 Feb 2022 01:06:39 -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=QqizKOAn; 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 S234660AbiBQF6o (ORCPT + 99 others); Thu, 17 Feb 2022 00:58:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234671AbiBQF6l (ORCPT ); Thu, 17 Feb 2022 00:58:41 -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 6C83829A576; Wed, 16 Feb 2022 21:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645077507; x=1676613507; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=YZurcpWQNBUfcx5yi8Gv6PFqBA2E9U2gZNOwFZGqaFE=; b=QqizKOAnO+AG9ibEd0Toux4iR0avHxBMUUbrSjyctfuHHGKjI8eDGFc2 kzktx+bcxS/r26+MqGRwuogE/PY4P0bpHc3iN5MJu5VbzG6B/B2lbp5IU GwCtIVGnU4elun0FU+vUY5/VGljKD5vOyChE3UK3kPyZ0Aq8UBjJRg45x 8=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 16 Feb 2022 21:58:27 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 21:58:26 -0800 Received: from nalasex01b.na.qualcomm.com (10.47.209.197) 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; Wed, 16 Feb 2022 21:58:26 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 16 Feb 2022 21:58:20 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , Linus Walleij , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [RESEND v7 3/7] pinctrl: qcom: Update macro name to LPI specific Date: Thu, 17 Feb 2022 11:27:43 +0530 Message-ID: <1645077467-6831-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1645077467-6831-1-git-send-email-quic_srivasam@quicinc.com> References: <1645077467-6831-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: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) 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 --- 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