Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1293700pxf; Fri, 19 Mar 2021 04:04:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR0yxkBtEGyTFdPnwJ867sd5ycxQXnxdFFauP5PRo3viEDxCU+IX9TVeprTw58bWhfKBqF X-Received: by 2002:a17:906:32d1:: with SMTP id k17mr3665417ejk.94.1616151851324; Fri, 19 Mar 2021 04:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151851; cv=none; d=google.com; s=arc-20160816; b=ooiaNfotJ5irgGJZQdUEN5E9nLyb6HXV4sc1ZQeoM2QZujTj4GJQLrmKZpFxlR3sTU k/dsIVadiZr+x4u21M7h2kMfkAaNmgMmvjT46XrJwpMLEiNHlH/gvM2CGaIYmiFcI2TV pTnEVZoWl5/7InXQW21K/WEGc8+A8K39Hh//83PWm3+KxUWTTwSzpOMgDP4FvzTluEpv R/53EtymhXWOxCAny98XS0LjODPT2Ldn0VSmaf3a6056Ya3l1NfVuhBC6aph5DpaKBMr vSjStP7WoWFbmueo2rBqPbresCGEAJDNcxgFdzItIqemEawnvuP3QEBIyfBkmECbGWPh XLjg== 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=lSxNdunUcfVjOwF1Ukve+wpGCmUe1GqXnjLiDip7r60=; b=Q5SOIkM4QXMZ/S0R0qdkKzEKjuF2EWNE/hh+qamyDJSeW2QdZszejPf9i3/xrZmFdG jzWrvDFagrOYEeMupvGLlbG41yJl1tKxgJlUXTjS0hL/A0J5avxGxq6le0Azw+gwZlOl 3599NU6heZhim138KCF78JKgMlVlf9xmEpVoHQqgQVbpIlgLTsj/gVg7mTN63nj8yCM8 BhaBk478YhKJ44foLNg7Y1Vn91y576YZvAFkKIbGhkQmXWT0WK7JpwUA8FX9F0kHDFPY wjwSKNxRiAU5XZ0lo4pxCX9i74H+MBnJ6tyBsP5wWAVVzZRVTtAqDXhB89nUlm6AqtIW NA8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ijjt5X33; 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 f9si4124009ejk.446.2021.03.19.04.03.48; Fri, 19 Mar 2021 04:04:11 -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=Ijjt5X33; 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 S230096AbhCSLCy (ORCPT + 99 others); Fri, 19 Mar 2021 07:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbhCSLCZ (ORCPT ); Fri, 19 Mar 2021 07:02:25 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4BFFC06174A; Fri, 19 Mar 2021 04:02:23 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id t18so4463219pjs.3; Fri, 19 Mar 2021 04:02:23 -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=lSxNdunUcfVjOwF1Ukve+wpGCmUe1GqXnjLiDip7r60=; b=Ijjt5X33sHG6VLfr/X33ofH/zw3C83x5jF2PbSQDxSentiAHZIdiWspxk+4wpX/j/k dll2UbF/VnvXh89Ud178c7zqeR+G4sJ9kXGUWQys5Xo57/GUxwevKvql1vB2pRI9s2O4 D8RA3+HfIXxAwA2e9r37NxLzuu0F4RH2HJ9DmslDfOAp/DbJnmv3SEbR0U2UxXmHN7Mh saPQ19ko9HehDeewr55u+I6ikxva25/lNvth/kyOEKrC+9aZgJ43NxDjrjcpXa9VJMcJ jkHyArhlPzf/2CaRZ/kRVPzG2TZFzLvwSofJeOfhmkx4TFT9uXwU4TAvQfYNxBBCq6a9 FT9A== 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=lSxNdunUcfVjOwF1Ukve+wpGCmUe1GqXnjLiDip7r60=; b=CrO5C6cTwnTOCACO2KYcJZFBZj9Zs54Sb9hBowZbuuzvdw3pUZpVh1+I7MGZiI22HK Pu2ohwaBU6nq57OTc/5lgZbaOtKaLSY9jbyL0o0GhyFvnCSxgQpBE+Nf7BB3e2OMaR6H VzKK8sIeBvK098bKzRvE635Scd3bVPh8n2/PHJdzCT2KkDcjF2KYLWPD196VarSkDF+j KY9KGQA6//QIWtsalinT2DRL4WCC7eymkRpEBfRXGhvqOEBSXv8fVA5vBj1ToODbYd8t 44QVnX2vcSsaoTBK0veymFOEkuNd20AjpJlj9PnushpoZclAo7Vb6TDNs6GWkkiVMzZH SACQ== X-Gm-Message-State: AOAM531EGlkTlGcxpK4qkuUrgxaqc0+oovaT8+Zt65dLHK9vc/zHr+FJ PFF9CEzyRUsqJSlFlwYDoNV3e7hEJO5lmg== X-Received: by 2002:a17:90a:1b0e:: with SMTP id q14mr3596346pjq.41.1616151743496; Fri, 19 Mar 2021 04:02:23 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:02:22 -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 Subject: [PATCH v10 16/33] counter: stm32-lptimer-cnt: Add const qualifier for actions_list array Date: Fri, 19 Mar 2021 20:00:35 +0900 Message-Id: <1a454675b256daed71e0c0053377f36475f920d3.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_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.2