Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3273454pxb; Sun, 20 Feb 2022 14:46:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCrTEkBeeV8JyXomV9ygQRmh0zB8bU0Hwk2xnN2RfZJeV4XkIExZE9ivxNgtOUvufDEAF1 X-Received: by 2002:a05:6a00:190f:b0:4e0:14c1:eadc with SMTP id y15-20020a056a00190f00b004e014c1eadcmr17139478pfi.59.1645397200738; Sun, 20 Feb 2022 14:46:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645397200; cv=none; d=google.com; s=arc-20160816; b=rQSFowxxKmWf/ZTPP9CkZOs/fm6R4YJMQBp59rrDUev9nbiT3K1xHt69FfFW8ApVtg 08DFOgK62ZLDhewXqcb8gva6gjyOLt1rl4hcFJCdg38JO0/ukOHhqUfSx6Uf7Okintj4 quKuLmI5eM4gQ4Fr1btodIYi/A742olL8sySEwICqf7E0h4f2nXddb97AgznJW8mT8TT S9IEsCvpihdvY5yUGZm1/7xwoRD/oC9Kub/fiWc7s4VePmgPSwHn8FeLs4vmIzPZ4BVb hNHp6R3/xJNWUSy7R5rnAO2XTvoKvBcPBLfhJvnBKmyL7q+A8IYapkT90yvRYLW9dGlk 2r8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=VS6tHIKsBZ6g2gxigj4Akj9iPgXhXwpFwPyKfVPvOFM=; b=hMPoISsnUzn++zpDwKyb+XbwwdXkIbSZ/0ZUx7pCvxsFrev0koJAYcEw+agbe/3BOc MVe87pAQ+t+SdgC90wybeIpoNCx/X8603iEkCnJWaJvH3L5sBuR9SSP1VbpfbkNw9ZEL nFgDXcgFp3sDtxhk1dO3USPZAuTRVY9unayaskX5OMRPTHAplgQzfEQRuTH4ufp9Wr7r 6LZ09EZmby+zM6Hl5DtmFuLEKYm2RuBX8+3Ji8umtXIPS7gysbcb74YkJ3wJnzyFH4FB j4Lcv16ZENO0PCHjdmByNnhaIQ3kqMliVOMtS4v/B1cZ/mw8bELRT05qUic/8lLDlxXO lTwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=S0yAPriS; 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 e16si33027208plh.210.2022.02.20.14.46.24; Sun, 20 Feb 2022 14:46:40 -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=S0yAPriS; 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 S242459AbiBSSYw (ORCPT + 99 others); Sat, 19 Feb 2022 13:24:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbiBSSYv (ORCPT ); Sat, 19 Feb 2022 13:24:51 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB8B12BF5B; Sat, 19 Feb 2022 10:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645295072; x=1676831072; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=VS6tHIKsBZ6g2gxigj4Akj9iPgXhXwpFwPyKfVPvOFM=; b=S0yAPriSJVzKd1PxgDwgpKmCeqrxrrz7Q+NWK/b6uOYLHYavMc66SiD3 yLp4DfAKeEuLPA6mMvNXin5pH9PPYwLr38odGimWk5A5OIMgxLV+YyVW1 3GDA11uxcDSIb00y8wSil0ERGEIqEBPtOMibF7m+odahSrC6BSOqAmvQq Y=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 19 Feb 2022 10:24:31 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2022 10:24:31 -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; Sat, 19 Feb 2022 10:24:30 -0800 Received: from [10.216.20.52] (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; Sat, 19 Feb 2022 10:24:23 -0800 Message-ID: <628bfaf8-7f3b-ad79-15cb-c45c4a2b3dd2@quicinc.com> Date: Sat, 19 Feb 2022 23:54:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v6 4/7] pinctrl: qcom: Update lpi pin group structure Content-Language: en-US To: Stephen Boyd , Linus Walleij , , , , , , , , , , , , , , , , , CC: Venkata Prasad Potturu References: <1644851994-22732-1-git-send-email-quic_srivasam@quicinc.com> <1644851994-22732-5-git-send-email-quic_srivasam@quicinc.com> From: "Srinivasa Rao Mandadapu (Temp)" Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A,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 On 2/19/2022 8:08 AM, Stephen Boyd wrote: Thanks for your time Stephen!!! > Quoting Srinivasa Rao Mandadapu (2022-02-14 07:19:51) >> @@ -150,20 +148,20 @@ enum sm8250_lpi_functions { >> LPI_MUX__, >> }; >> >> -static const unsigned int gpio0_pins[] = { 0 }; >> -static const unsigned int gpio1_pins[] = { 1 }; >> -static const unsigned int gpio2_pins[] = { 2 }; >> -static const unsigned int gpio3_pins[] = { 3 }; >> -static const unsigned int gpio4_pins[] = { 4 }; >> -static const unsigned int gpio5_pins[] = { 5 }; >> -static const unsigned int gpio6_pins[] = { 6 }; >> -static const unsigned int gpio7_pins[] = { 7 }; >> -static const unsigned int gpio8_pins[] = { 8 }; >> -static const unsigned int gpio9_pins[] = { 9 }; >> -static const unsigned int gpio10_pins[] = { 10 }; >> -static const unsigned int gpio11_pins[] = { 11 }; >> -static const unsigned int gpio12_pins[] = { 12 }; >> -static const unsigned int gpio13_pins[] = { 13 }; >> +static int gpio0_pins[] = { 0 }; > Why do we lose const? Const here is creating conflicts with gpio group_desc structure!!! > >> +static int gpio1_pins[] = { 1 }; >> +static int gpio2_pins[] = { 2 }; >> +static int gpio3_pins[] = { 3 }; >> +static int gpio4_pins[] = { 4 }; >> +static int gpio5_pins[] = { 5 }; >> +static int gpio6_pins[] = { 6 }; >> +static int gpio7_pins[] = { 7 }; >> +static int gpio8_pins[] = { 8 }; >> +static int gpio9_pins[] = { 9 }; >> +static int gpio10_pins[] = { 10 }; >> +static int gpio11_pins[] = { 11 }; >> +static int gpio12_pins[] = { 12 }; >> +static int gpio13_pins[] = { 13 }; >> static const char * const swr_tx_clk_groups[] = { "gpio0" }; >> static const char * const swr_tx_data_groups[] = { "gpio1", "gpio2", "gpio5" }; >> static const char * const swr_rx_clk_groups[] = { "gpio3" };