Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2544268pxb; Tue, 9 Mar 2021 05:23:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrx//oixDIcRnLORYKXzuHSxfC9ZsQDeYKHtEpL7tZdi0t6ZwXxiziQNXGXiSRxdCDVgDS X-Received: by 2002:a50:b5e4:: with SMTP id a91mr4087499ede.173.1615296236443; Tue, 09 Mar 2021 05:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296236; cv=none; d=google.com; s=arc-20160816; b=IGohOrxBa4tu5th0+e7kRRzpUaJ9+72sv6kaKZZM/vL+A3BHM5MmtvaKKrGiDKFAuH hiJCU+Zvyy+BI8YrTacWF8R8YnhnHqRqv/wNOMnOJC2VQ/YGy6sh5dDDSJdCzddmwCAv hvDl/N3PI+t/RjSvbWLVsyMZc460tmMqZLm0RuKrODEy9OqtCEvAnpQNWu2QB0E58Dwz atzKNDipeL8MAarQPRJvb7+CIu6z2ksnbeV94iMii4zXBLCmBPr2KL+BbQJfl5nHEgs6 OVrfpAZiCEutKJlEw4KnsHbfR3RqgrwO93NLZiJDHpjELQatMxvcVn7Q+g185v06oAvc LhZg== 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:date:subject:cc:to:from :dkim-signature; bh=K+ywkOKIYI1rUeLTBajU0K1er4fWBGM8+BnI9DpZoy4=; b=KC5htD+2G0vksz/+du/MdioPUyNpRcUudZ3Etj3nYA2Tj6n3x25pFOW8f2nQM6upOG jG0gn6vsAybA1dlQHkVN9eP3IVOh3+x6ijDzo0fsgMh8WrdArbzKHEzsTDoaOZR/w0Kh SUpTwLI+g2HehTCmCkNbd4PMPviVoRMT/8wK8wntsGK5blanqEYJax4urTRkqjVLlrKv iMSZV9zMqY155LhyGmeTdL+GvN6FjA4219WwfCA18pJROy5bomXodZhFk6VLo8Se1fME vACQECe/FFSFEC+7cuL1XU6E4Qbzq3SB4FhQvs2K6Y6ZjeySU7Rv/4vZu5MYg4KSrmK/ pGGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=llzPUbkZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si10116542eda.304.2021.03.09.05.23.34; Tue, 09 Mar 2021 05:23:56 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=llzPUbkZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231669AbhCINWF (ORCPT + 99 others); Tue, 9 Mar 2021 08:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbhCINVk (ORCPT ); Tue, 9 Mar 2021 08:21:40 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4006FC06174A; Tue, 9 Mar 2021 05:21:40 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id q204so9361338pfq.10; Tue, 09 Mar 2021 05:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K+ywkOKIYI1rUeLTBajU0K1er4fWBGM8+BnI9DpZoy4=; b=llzPUbkZxWj2ssspPIFBoD9My5GmxNP0UdKdVEXdz2zTh/foocktiGWxwlIfJRrW45 FOQPeFWkgFJA6uvgzNbb18ffI2aSIKJaf2Nxh1NOqOr43nJx5WTDzmKwlzYr1lcWwDUc clNvv9Co6ef7KmnE8OQszPLQ4TtmGTF65GqOntoIFFysIoFobvTu6O2G4VGTVNQyJDxo d1T1n//jA+sdhr3RSOgPIrY77OCfVqPS76BZ7+Pk9u10JTdIgL7mUuSUisGCW8n+9uYU pJLL6lkUIBYwiaig6NrOJ9TKFfZraijrjmUYMN7yhxoLuFmGdPhNkp5Y5a8nxQG/MYlI hejw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K+ywkOKIYI1rUeLTBajU0K1er4fWBGM8+BnI9DpZoy4=; b=eID89azRpHPgD4YyORh2znfsy/vUcktjVMhEa1UF5SvHR/l9QYti/iKIZ6OBLNVLm8 05ib97cuYzkoLz9oTC7rTHzxDc2KyW3RmgCOb0d2ixUc7Kz6ktpVtjFbR6PB0w0OJIzT CabkA6KRU+rjzLk8aTuRj6TbIVGcGU7/o3U3yFSGGr3yczk11pesF9lzI+kMlCj7eZeY oYTaumhDIiT/1akb8gNwsQ/xSzMNjoPnl/9CeSIcy2fGkQW0ADPmJhMVQeNMUBOfiDRF AYGNUX78tp1KtG28hdnU2bu/intjRDMxF+zSlTjU5HIXNc0q+gABJyOqZODLi6YAgBcG zALw== X-Gm-Message-State: AOAM530MvbnqW+cRdqnsbanSFqgIoptriE8jWljSBt4u+7qBYgZN7VH8 +0z95jcUg59aLE3HxtT5PqtPbdnFBbnWAQ== X-Received: by 2002:a62:928f:0:b029:1ef:2370:2600 with SMTP id o137-20020a62928f0000b02901ef23702600mr24730883pfd.9.1615296099884; Tue, 09 Mar 2021 05:21:39 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:21:39 -0800 (PST) From: William Breathitt Gray To: jic23@kernel.org Cc: kernel@pengutronix.de, linux-stm32@st-md-mailman.stormreply.com, 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, William Breathitt Gray , Benjamin Gaignard Subject: [PATCH v9 17/33] counter: stm32-timer-cnt: Add const qualifier for actions_list array Date: Tue, 9 Mar 2021 22:19:30 +0900 Message-Id: <4d1b80ddf1ec22c70b7b11389a5c14fe209e06c2.1615293276.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the stm32_synapse_actions to match actions_list. Cc: Fabrice Gasnier Cc: Benjamin Gaignard Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-timer-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c index 0c18573a7837..603b30ada839 100644 --- a/drivers/counter/stm32-timer-cnt.c +++ b/drivers/counter/stm32-timer-cnt.c @@ -267,7 +267,7 @@ enum stm32_synapse_action { STM32_SYNAPSE_ACTION_BOTH_EDGES }; -static enum counter_synapse_action stm32_synapse_actions[] = { +static const enum counter_synapse_action stm32_synapse_actions[] = { [STM32_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, [STM32_SYNAPSE_ACTION_BOTH_EDGES] = COUNTER_SYNAPSE_ACTION_BOTH_EDGES }; -- 2.30.1