Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5110682pxj; Wed, 9 Jun 2021 09:21:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0JzF1ll+aivENMsvyVhgePaK9XxNWk9ux+8WJBCkAMIEdbvPAxeIt5b6kLly9XJxdzAGB X-Received: by 2002:a17:907:7b97:: with SMTP id ne23mr634762ejc.499.1623255670979; Wed, 09 Jun 2021 09:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623255670; cv=none; d=google.com; s=arc-20160816; b=PqltlNMEhHAciHKVYLlepH7iRLNxFHDIQKKzZ1dkaVI7/i3w5VdEmNipiC/6mubTLp IdMbStqxeuZmRqEcvlnNuF7NrFtZLbRRX4hHMZdr/6hwmOpfJDwmBJi1tiJUfKVSEIfX j0QW8z0lQNIDlPGXGV0P17u+Beu1kYIrGDhGCOpuXeOTyWSVAVjgABU6kwI4O4DZ20yv 9+Rf/+vhAiojbezV2qWVsWbX6bzJJkOPI8qqL7e16jL44JqzEPoEb67WhdjNXFlX5pB6 gPjv0qrRTFAHsDRid7Jyu5Xi8WNzZscN8wPpvlw3YzCOKB4I4wRtl1laj6tN38edyxcz 5HVQ== 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=zhzbREDJFUo3K3tAFZAwkYTUErlkFTgokYkLDx/m6QQ=; b=kfJp9ETCHbqvg/J5jnIBFdZUlUOwngEcN6nSODd2QN5vQ7DF68rrRMoOQ3mSvPpbsL nqPk3mVydPrfJ9I3JVy66Wdh6knJ5bWXBR87GEmtOt9dQbAlI0v92vawaniggJWQmzRA uth/uVGBByMHTGfyby182In6uiaeDAuuaZTeeosNaEzKlfpI2p38lCEpi5mqmX1L7cer SfEgujqzbodCaDft5eMc3stAQSstv3sRoyTwhUidCaJgr6fTurq+hHg/bouOYIUN3kxm lBlXUxu+eWqhQ01HOZUV5FZ1SK6lp7O2nVBa1kAoxv+t3gf7JeQJC8nGk6P7hma2st6S qLQg== 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 h16si154799edv.213.2021.06.09.09.20.47; Wed, 09 Jun 2021 09:21:10 -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 S236220AbhFIP1j (ORCPT + 99 others); Wed, 9 Jun 2021 11:27:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:52686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236038AbhFIP1W (ORCPT ); Wed, 9 Jun 2021 11:27:22 -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 0F19D6100A; Wed, 9 Jun 2021 15:25:22 +0000 (UTC) Date: Wed, 9 Jun 2021 16:27:15 +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 12/33] counter: 104-quad-8: Add const qualifier for actions_list array Message-ID: <20210609162715.5992faf7@jic23-huawei> In-Reply-To: <776ba3ad0a3c609d3600cffe0ed6446baf29fee9.1623201081.git.vilhelm.gray@gmail.com> References: <776ba3ad0a3c609d3600cffe0ed6446baf29fee9.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:15 +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 > quad8_index_actions_list and quad8_synapse_actions_list to match > actions_list. > > Acked-by: Syed Nayyar Waris > Signed-off-by: William Breathitt Gray Applied Thanks, > --- > drivers/counter/104-quad-8.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c > index ae89ad7a91c6..09d779544969 100644 > --- a/drivers/counter/104-quad-8.c > +++ b/drivers/counter/104-quad-8.c > @@ -305,12 +305,12 @@ enum quad8_synapse_action { > QUAD8_SYNAPSE_ACTION_BOTH_EDGES > }; > > -static enum counter_synapse_action quad8_index_actions_list[] = { > +static const enum counter_synapse_action quad8_index_actions_list[] = { > [QUAD8_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, > [QUAD8_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE > }; > > -static enum counter_synapse_action quad8_synapse_actions_list[] = { > +static const enum counter_synapse_action quad8_synapse_actions_list[] = { > [QUAD8_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, > [QUAD8_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, > [QUAD8_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE,