Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1293696pxf; Fri, 19 Mar 2021 04:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8rfFIPk6xkucX/HzXe0DRW9CxvFRLKwyBNQmBxZSrW2044gG9A168OH2Amqaf3tBx35JL X-Received: by 2002:aa7:cb90:: with SMTP id r16mr8931277edt.139.1616151850708; Fri, 19 Mar 2021 04:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151850; cv=none; d=google.com; s=arc-20160816; b=Y1sFQ4PRwQkpLszgWtGh1nHRe0g7O2ZpiT7vI0HFyqGP3G6LZ/sTftbosKTYPpK8H3 FDy/+ITXDO2GDx126ExLmwWqDDmD53pIxxWcCzW+g01Il+90HaGjoZZe+HL/bXLXW1vp azr+pLEtu3TNUUjwaXJJ7gTcSp8rbuepLKPpmUrPCMkdLJ5E3rVf9yy1ZNC0A/5Yeusm iZeCciRwbpII97cFPmiBuGCxKQL2uQn7IWa6B1szIAQII/mcFyyToeeN050WF3KGZgTD PzznZpQ0nb1+HHr47aqWkWVRBCAs6k98GTPHXqokxqFriNn1NjqoUErV80oCnlttJCrf IABA== 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=ecJ7k92m0DfcFt1BeccNAFge0TH40D/RcDRWwVj9l7I=; b=UqT0NYSDvdcdZW9PyNbWZvWKeXpebJxGJwnbVo2rD6cox8NxbpMItJPkmqKStcZ52b PvesQ9HykTwraUdEWjPYIBi8zI5JaYLVEv/wyAFnGdoAWU9SLteDOhmB6Yds4UD8/V7R NDzo1eqTq58CJDNbmReuKe3enPRuT+YZ1Cnd8BIO/pyf1jcyUzhK546thMjk6fcYDaNW fBmtuVzTh5GBcI84YxtouTI3tMAY6rJ9QNF4eYlnzD063Hjzk/kwLFOionVW9fYdoITx TNJp7C4tC6PAB2NWVHgvQE2XQtFzU7EhCSY4sEPS90Bc8Lr3cHBTfxzGlQe9Y4w/06QX B58Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZuFxGxCh; 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 y14si3942495edt.78.2021.03.19.04.03.48; Fri, 19 Mar 2021 04:04: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZuFxGxCh; 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 S230127AbhCSLC5 (ORCPT + 99 others); Fri, 19 Mar 2021 07:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbhCSLC3 (ORCPT ); Fri, 19 Mar 2021 07:02:29 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F21ABC06174A; Fri, 19 Mar 2021 04:02:28 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id v2so3425404pgk.11; Fri, 19 Mar 2021 04:02:28 -0700 (PDT) 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=ecJ7k92m0DfcFt1BeccNAFge0TH40D/RcDRWwVj9l7I=; b=ZuFxGxChMhbMQg9PTqZGvyF/6ZSct7w2HVa1tbkOA+RI4ELbrcroE/QsWUJ8FWGtav VAH9QUmbHgYiMQddnw8ql5IxvAxD7TgqqgnG8Hs19A7eXklWhQ5xK8IzhhEhQYtccTt3 uQ97mMm1YymTR/PXHxCeXl6rgwDy/JVPf/TJpgM0KSs8XSbx97yInEYiw849KHrcfSq1 j22A4M8j2yf60az58Pvgi/61KLi1C+dnQS46BWdpD8yeV8hyKSAhHVYFIW8VLVCT1Hmw U96wffI+Doe05LNhBAKYs2nvluOuk7rlCkcXwrv33GNw8Nv8Bzp6y33TN+KJN59ldWhS K6Yg== 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=ecJ7k92m0DfcFt1BeccNAFge0TH40D/RcDRWwVj9l7I=; b=May0JPufjSav1q9r9npg8w8Jc2x85vebP301gQ/aJUIyHQDaFp0uKv7F3LTPGZi9zy Up2o75axePkp7bUSbp/ceIH82leKQNE0QHhmrPLXT2XQdLS/Nh3jZF/vMRmPpOn/zJi2 GKj2K7yGadT7yay+CWIlAnmTJwde2+Fms50rHCSzvAua4tbfZvP+T6hpwFQuvoYD9hEs foaIwVaHmF3vKfPC5Q6NhWa1nTHUBy9AZQLKs0g33ub5weuXk/UW1D+nXJv27x39wZdz PvVba43TsWeNVVkkaZyK7x3vX0qKcaebxNMYoFVVHWHOqMTJKc2mTvRmCj/sYTY59nOJ U1Zw== X-Gm-Message-State: AOAM531b7LB3yBk74hMGYkC8tmjBetC9eP65nuq/cSBhnKX5cXf/mctw rW0hHWFAldoxbiemyHT98q8= X-Received: by 2002:a65:6a43:: with SMTP id o3mr6751137pgu.297.1616151748594; Fri, 19 Mar 2021 04:02:28 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:02:28 -0700 (PDT) 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 v10 17/33] counter: stm32-timer-cnt: Add const qualifier for actions_list array Date: Fri, 19 Mar 2021 20:00:36 +0900 Message-Id: <87c00aa93ef03c058cbefefd5b8ab26ed51098f4.1616150619.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.2 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.2