Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5112203pxj; Wed, 9 Jun 2021 09:23:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8diaV3hHs9MmHNOduRTkTq5bQdEfujfxiNnP1gfhLoabt44NY3ivXXzESXQQKwnPE1shA X-Received: by 2002:a50:ff16:: with SMTP id a22mr251120edu.143.1623255799277; Wed, 09 Jun 2021 09:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623255799; cv=none; d=google.com; s=arc-20160816; b=yDxlKGxpVApLqMT5/AkibvuxhHqHa09ydDmf0lpu0PQdQW4zJx6JxDNtjew2APgUh2 3P9UJGTKUP65TQUqIiUh0hen740Xw4EW6Dd6ku0dBcVfu6o5jkhbbFWQ1idMo6Ef2cyH IzHyp4bzrvS0nl93MTRePVucWaHYeACNysq4hieJLdkLHICLcckLoZ9d18pK/xbvrafa SagOLQjULQkx3gZ3c5xIDl7SUpZ4rji+18LMYgaf/HsYbEOTVSkL8pV3NW2D41Aj1lcD r22zIHXdJjuFZOHsIwTNQppuX/Ibic+bM49w77GNwzUurYvRTjSPnQzaUStcP1YtbAi7 ohIw== 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=v5FKLftUFqiz+YUsTWR+QbBrFM3DmCjnogtE5wT21Yg=; b=ZxBJhB5WranS6N+GaBdrKHrbMgC/w8hvEgJ6RDw5zWnnVaLAltkrOu3bJcknNSW5xA utU2pIhphj69oRr+Df0J8MujEEasdD6sVpSH3BCyDPeebuZKW0xO3psRstGZQNFDNq8M TgXm8gRbWTN2xlnLz2tKVXSjvlsnFz9VjwTwHLVIH/LrLQxPYDFW5SlpDhSqaET1OEk/ hQCHJqfHjOUrxeUKbONdiDL/sMH37VC6z9E4aXmXN6iRYl2u59QB8rXx8Huh+Aylg4Uy IYJlixYRhgotkS+LlW4RpEhrVSl3elGlO8PO2FQlHVLHTIwDXoafLHQq/FJpd4GQk3w5 WfLA== 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 f20si122537edf.448.2021.06.09.09.22.55; Wed, 09 Jun 2021 09:23:19 -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 S236447AbhFIPcJ (ORCPT + 99 others); Wed, 9 Jun 2021 11:32:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:55998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236420AbhFIPcH (ORCPT ); Wed, 9 Jun 2021 11:32:07 -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 5011961351; Wed, 9 Jun 2021 15:30:06 +0000 (UTC) Date: Wed, 9 Jun 2021 16:32:00 +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, Fabrice Gasnier Subject: Re: [PATCH v11 16/33] counter: stm32-lptimer-cnt: Add const qualifier for actions_list array Message-ID: <20210609163200.281673ac@jic23-huawei> In-Reply-To: <785e0daa3633923ede42394f423fcf94c4469154.1623201081.git.vilhelm.gray@gmail.com> References: <785e0daa3633923ede42394f423fcf94c4469154.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:19 +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 > stm32_lptim_cnt_synapse_actions to match actions_list. > > Reviewed-by: Fabrice Gasnier > Signed-off-by: William Breathitt Gray Applied. Thanks, J > --- > drivers/counter/stm32-lptimer-cnt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c > index 0f7d3f1ec1b6..c19d998df5ba 100644 > --- a/drivers/counter/stm32-lptimer-cnt.c > +++ b/drivers/counter/stm32-lptimer-cnt.c > @@ -146,7 +146,7 @@ enum stm32_lptim_synapse_action { > STM32_LPTIM_SYNAPSE_ACTION_NONE, > }; > > -static enum counter_synapse_action stm32_lptim_cnt_synapse_actions[] = { > +static const enum counter_synapse_action stm32_lptim_cnt_synapse_actions[] = { > /* Index must match with stm32_lptim_cnt_polarity[] (priv->polarity) */ > [STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, > [STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE,