Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5111374pxj; Wed, 9 Jun 2021 09:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSpqoK83md7DeGq9zDpdpGrHvlm4QDZmpTID2LanCn0IH75OT+YfIuMSuovnaeaWrgaslK X-Received: by 2002:aa7:d54c:: with SMTP id u12mr264744edr.242.1623255725287; Wed, 09 Jun 2021 09:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623255725; cv=none; d=google.com; s=arc-20160816; b=XkuAEdIJ1JO1cS1aWrExvwBpFYNMkgWRg1I03EcHqUAxQTL8EBsuGVYHc3zYnyZoQW 94IysexRrv5CQblj+a5h+hQXU8hPmEfOEn9w3OF+XffW3mELySA9vNSUQE7FzsXGmk0A m0juzO/WY+OhrrwTXiyo5pN2qT4akUVGNC0xFc3NVe1GU4N1wypPUABAeGTSrXp1Piak er6YObYEyTo581e9uYAA3flWJzE2R8yfK+8GAHIdSaV4L+C+XwXh/7nsjBLpnzrZVKAJ TEc6F4jo9fzVM3qdY//fMKrHu7aKhPNAKS20FcbN76DCoZB6PgAhs74MG55vGIIs9XHy YH+Q== 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:subject:cc:to:from:date; bh=JKfIfR6dO2VxiVctpAOM0997qAYc+vrYh2ziX6szPX4=; b=EmzgGovJ6HH1YE3OtuFvcZg8GN5p4E8e0W+sfEXjWsHLBFYR7LiOcd5r7BVbT3Kna7 pwFoyvzC1OIC+hzKdTKnUU56mSNQtHAsGcXSYrnNg7L4cAw/pknWAafvKXUKS4Rb9o6R ECl5XlWLSucIC5NZybE5JWeMs6KaH7sVbYCouHUKncuYPwmgDhgffXD4fseoZWxcJFyn mmqcqXMrcwKlE3dKQyRhjv7Fea+9pgEUltyRJ9Ah7b0d75qkK1fil1pfZqbJNuSY4qmx 6S3wr4EqVx7RzDwyHHfkgIpC0CVsb0X6X+tqOofszrvoFuBOOft2l3Yt4mR3DWTWbAhB 53OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si112141ejl.599.2021.06.09.09.21.41; Wed, 09 Jun 2021 09:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236348AbhFIPa5 (ORCPT + 99 others); Wed, 9 Jun 2021 11:30:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:54678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235379AbhFIPaz (ORCPT ); Wed, 9 Jun 2021 11:30:55 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D0616611CC; Wed, 9 Jun 2021 15:28:55 +0000 (UTC) Date: Wed, 9 Jun 2021 16:30:48 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: linux-stm32@st-md-mailman.stormreply.com, kernel@pengutronix.de, a.fatoum@pengutronix.de, kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, david@lechnology.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, syednwaris@gmail.com, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de, jarkko.nikula@linux.intel.com Subject: Re: [PATCH v11 15/33] counter: microchip-tcb-capture: Add const qualifier for actions_list array Message-ID: <20210609163048.45310556@jic23-huawei> In-Reply-To: <165f9682ce308a60a477aaa56fdae7bc949dc218.1623201081.git.vilhelm.gray@gmail.com> References: <165f9682ce308a60a477aaa56fdae7bc949dc218.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Jun 2021 10:31:18 +0900 William Breathitt Gray wrote: > The struct counter_synapse actions_list member expects a const enum > counter_synapse_action array. This patch adds the const qualifier to the > mchp_tc_synapse_actions to match actions_list. > > Cc: Kamel Bouhara > Signed-off-by: William Breathitt Gray Applied. Thanks > --- > drivers/counter/microchip-tcb-capture.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/counter/microchip-tcb-capture.c b/drivers/counter/microchip-tcb-capture.c > index cabcfebfc799..51b8af80f98b 100644 > --- a/drivers/counter/microchip-tcb-capture.c > +++ b/drivers/counter/microchip-tcb-capture.c > @@ -49,7 +49,7 @@ enum mchp_tc_synapse_action { > MCHP_TC_SYNAPSE_ACTION_BOTH_EDGE > }; > > -static enum counter_synapse_action mchp_tc_synapse_actions[] = { > +static const enum counter_synapse_action mchp_tc_synapse_actions[] = { > [MCHP_TC_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, > [MCHP_TC_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, > [MCHP_TC_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE,