Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2544200pxb; Tue, 9 Mar 2021 05:23:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNEVpweG5lo5m1Xbb8J38/aG/QWaMYP1q/hDdHmMHr1aQ8ND5g2XRcYUmX+jjaU4AhYP0w X-Received: by 2002:a17:906:2c44:: with SMTP id f4mr8011377ejh.508.1615296231536; Tue, 09 Mar 2021 05:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296231; cv=none; d=google.com; s=arc-20160816; b=U9Yjb7soOQz6GH46f7PwepvqJMrayQESTnIvn/YWP9wzq2cPMBATnR3p3xcviz4NgX ceZU0w/HIqDw0dO6JDLuCrq1nyjzn+gAQ5LjLS8H2MgKZYk1FA+JRMxWapv7HmhaSNrR qRpWE/ZtT4RqMxv57sBlZhxg3UCXoW1C1pSC/d2ByqWLqehZKgGiCPhFC+7tWeaH+rvv 8pGBjo4G+xMsHRuhnNN2i00VlQP1KzOEAvf3rp83GvL2XxIcHohyYqY6Rsk+0IojN8cm V4DFo4/Eha8eRXPt4ZOSC7t1t6j7yYlMiaxjf3qZLlNRd5Ke99TUkum/uoJsBUuZkcrc Eg7w== 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=lKQBbBWNoQCAzrzOLXLXaWKO88BEqFAf4JzZ/BOkGvk=; b=wq5iI/GKjc3JzX+ezClJ1Vk0oiMqOH6Jn9IXth2YbMVW8pKh9x8HdDEZd21F28Hf1z dHbZs45qppd52hWCRWuAf55LbXOXLVjfe4zqHGOrX3XDblHd1ntHa+wr6LIBsDUvuQFi FdcETVNmFd8n8vexeoJX/g5jV4aKgrts5YrqAvbV+Q7X3vjtMnyteuaV7RZr6GFBh0x8 s0Z9d2bIRB5NPM71og/Th5Lkr1hnruwii8D8v91nh1eGjq926LKL6WFFB7zCuMeNEdUK 7RMUKMZ4MXunI+111orKkJNP2pFiI+4WJmI5e4dsbkHwYmpSKktMbWIXZ3fkAalo3IKl B4UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h9WuVuuq; 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 t18si4759695ejj.437.2021.03.09.05.23.28; Tue, 09 Mar 2021 05:23:51 -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=h9WuVuuq; 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 S231468AbhCINWD (ORCPT + 99 others); Tue, 9 Mar 2021 08:22:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbhCINVf (ORCPT ); Tue, 9 Mar 2021 08:21:35 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9774C06174A; Tue, 9 Mar 2021 05:21:34 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id a188so9478198pfb.4; Tue, 09 Mar 2021 05:21:34 -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=lKQBbBWNoQCAzrzOLXLXaWKO88BEqFAf4JzZ/BOkGvk=; b=h9WuVuuqiNzrtydGX1I+OAyd5xdQWeCeb19No6Q9k349Tqh4H6uH3x5Cxx3KM7/kCf b6FtVO35EmYC/8BDUs3JwcHbVvGVzJ5KeIMV4iW8anmQIiVcIgsDAXYEiRMAbkBU1866 C9sC1208pC96x5X5JBEurygLyzBSDY0tjlcGo3HYD8jTF1DDdenq+AQW/IlU2l5zyAVn 2qe7tPOajW1VwQj9H9O6u90GfeGun8cbzNKaTNFRTwaKBUNNp4dcoN6AQF2KC5ANnr+2 ajp6E3j6wuMCtmkCV7Bq4WFPmXpPJlLpf6quj0pFmlewc0Lx6wfdaVY9kFrBGGH51R+5 KBMA== 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=lKQBbBWNoQCAzrzOLXLXaWKO88BEqFAf4JzZ/BOkGvk=; b=VFeJzRvzculfjFcB2IVAQw0UNj7lKNCJ/J+qVI2LmfLTSMGz23XsuYiAnczcqheQAN lrLTEmAu+4fZxif1nZnYvQ5sRktOZAc0FLL+a5vaOWuRWT62+IPcKmBIpg0iU6YlsYSv WvtSmxqUTjMZ/3hXiYsBmMbDFnYs3kh5kbxAO+pSVJ8StWynNC+ScUypKQq0UBSoJdX4 Bnjfj4a8+k3oWio7dMGYesmffHggVJQnexhZhrXk8riIK5prezsTAPzgFr0YIlBuCtDi t2f22tsNPicPmzVWxm0PDq1s8mN1Y/cH8saBQv8V9EohsG/eu9kF7pEE0hWTd26vTeLo A45g== X-Gm-Message-State: AOAM532QKzcsCOJp8T52DuhHs75XJE5KwcblRKxUOWEfCZwDR24B46As C7rDidui/XlC+Nsr8Bb27lY= X-Received: by 2002:aa7:9298:0:b029:1ed:fd64:e6b7 with SMTP id j24-20020aa792980000b02901edfd64e6b7mr25686117pfa.5.1615296094436; Tue, 09 Mar 2021 05:21:34 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:21:34 -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 Subject: [PATCH v9 16/33] counter: stm32-lptimer-cnt: Add const qualifier for actions_list array Date: Tue, 9 Mar 2021 22:19:29 +0900 Message-Id: <01cafeb117b6c12288db7d36ff295ff903397e34.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_lptim_cnt_synapse_actions to match actions_list. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- 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, -- 2.30.1