From patchwork Fri Mar 19 11:00:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 12150813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 704F9C433E0 for ; Fri, 19 Mar 2021 11:07:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 898D364F11 for ; Fri, 19 Mar 2021 11:07:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 898D364F11 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dkRakgnMKO11+roEY9WVAaXGu0C0HrG2zUeV57bp+S8=; b=PaVY0L59w9QYQedfI0ZhA0WMn lu0kOfEKy9OMo4T5JHCNt85L+uxG1SZ/RbV5m8KUadmWHRKNeKZgvsc0oJSgByWjFo0aINB2zqHCD P1XQNEcWpNoVGbemqQRFkiUcJWJJtXNCTQWPtGNFTD5k6SjKFsWG4OCrwTsyG9O679ZQD1JNbNrIJ TEXGGKp40RgTRWTyS4af1gk2lSMEvdS4aWxWU9dCJUiB4SS0kZz6ZwrrkgGd5+YfD5D6bwhTZHVfk Qu8ZyZIpPGTlyHeaxPfELjeLMb9riCOLZBR69vzYe6cnRr0e3zM/+QYtaBTNwGpTnG/T4Xj+50+B5 Bvc6CNDNg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCw8-007EmL-CG; Fri, 19 Mar 2021 11:05:00 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCtd-007DXS-1J for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:02:27 +0000 Received: by mail-pl1-x631.google.com with SMTP id v8so2787891plz.10 for ; Fri, 19 Mar 2021 04:02:24 -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=GNDBipMKhlpNM4sgMhgYpWOaq8QT3myljLkMyAAYO8tN/3YTfNXfDJ+XoxGMvhcau2 hOnzgvFA6F7/eSluJebDmeHzAdEcPkH04BuobGmDa6ZzE5Q4G1rDh+QddjV9yvpGLSzd WHt+qZmteJdHjLxiLtwDV1WI6+7mouR4DLNxd2T87aWtnDWnHkyUrUa1pV6RL6ANYoGS 7Gf5VqmRX9CcKWzXmy2gkoHsLWwpRinyKfswo6nc8YP333IJRLc6OUWABI4VYWPTIfok 75Df8xVufG0vG/TuhP4nSLFkCGb+CRL1K4UuOIa1goFDbGYTR+3oVMoBsgy2Wj9MMPzK xjIg== X-Gm-Message-State: AOAM532V7RufI1W0rGWUsCkLhVG5d9gHToMT96/kgE/pI6D5Cboav5XB ihNXpkhX91CeC44QzqId3MA= X-Google-Smtp-Source: ABdhPJxakjll3igoMgwm09QbKi+PEN8Sji9wqQ7cN5cp5slUO1v+w3Ri5WLxTByTWvLWd5tA36ZOJQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_110225_328533_D211CEF4 X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Fabrice Gasnier --- 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,