From patchwork Fri Mar 19 11:00:36 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: 12150815 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 B3007C433DB for ; Fri, 19 Mar 2021 11:07:12 +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 7551164F11 for ; Fri, 19 Mar 2021 11:07:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7551164F11 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=rppOkBciRygqp2xTxhXatj5Jax41x+VOgIXgF5JTHnY=; b=LLB3qZ9LAR3xgH7abd0CLUhTj BHDS75ugafGQZSFNCyXVw9I/RQNoZq5SmCL3aNbqA9HhxwggmYaZvlm2Y4qHZchdUz1R2V3BmLjGQ fjzLfYhB+Ueb83+Jh8f0BG+bK0OQQDYPDYb3notBNTw0PM6FToicsxPTQjjvgI1xpR6exS7xo7KBr kva0gtXTqNQBuLeBhh6wuropItkyz3zbQcP0n7y7iYg3LHMqw+AJDaa1Lm5Ogm7Om+id/diKPBemx DAgn80N3DVisLqu1PXEXA1zycSjPDegb0B4giYrnPRLL7YlEdRx4+vCcY+WLEtCBXwLe9YOIt3m7w 7y6LzRvvw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCwS-007Etk-Nk; Fri, 19 Mar 2021 11:05:21 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCti-007Da6-1A for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:02:32 +0000 Received: by mail-pf1-x434.google.com with SMTP id h3so5624062pfr.12 for ; Fri, 19 Mar 2021 04:02:29 -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=AZl0/6P8G+mYeahBjinigA9Ru8djY2VjrVpcEne9AZZawsyXPNSYIcV6t0EpLD65gU F1GsDt+Vx9N5BX4upberN8AlYRQOGBDgIjdIW+hRibwTdZlFopJ/PTwOJYQ72IiDGfgI peuP5z02qwGSWXesAxyaLpm9qbUk50DP5kkezqwKe50hbbEyUNv1urJuKuOZ234hONCt 70RpK0NAlmbtNaJnPszNKyIGVZwgrYcHTr1JOQPkjFCCEBuEBSpnWvApSa/r2z917PzL evmZS3EDy6y8kVY5N3hI4ag2MKOE76VOicyMRFrTLU1p5Vc24yu8pPtFE+hbD+72szvq 3Pww== X-Gm-Message-State: AOAM5307OaietGu4unG0bPY+c84pIWAzUNVxRwPnLlwR+0Cyt+nPRR6J 09zvg1fpgVLg6WAbIErSWz8= X-Google-Smtp-Source: ABdhPJyZPrMcXR4vbb26JH5SvHP8Hfz8rE8wKT84uf2aNvKA1Glc39Sz/S7jRC1NXOOl/uy6/t8c4w== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_110230_414557_5DF465EC X-CRM114-Status: GOOD ( 12.48 ) 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_synapse_actions to match actions_list. Cc: Fabrice Gasnier Cc: Benjamin Gaignard Signed-off-by: William Breathitt Gray Reviewed-by: Fabrice Gasnier --- 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 };