From patchwork Wed Jun 9 01:31:20 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: 12308651 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.8 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,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 54FA3C4743D for ; Wed, 9 Jun 2021 01:49:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 20C6B61208 for ; Wed, 9 Jun 2021 01:49:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20C6B61208 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=bombadil.20210309; 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=2W9QhdCg91mgcSNZu/mqFe/eYCwjyX/LCmWhiM7UZxs=; b=u3WMtt7WpB2giC jXIkmTshqnox7N7+QONWibV7sRPVSaUlCuvTvoaKmkTDObFQqxSDh+3ZCpXUJcyiWKIVKuG/G0vFc p9J9baAz14phbESlx8KRau8cZKWJfark0+oWHwZRhxbWVl2G1gZ1459XX6kl1+ZCEWCXh9hHsss3G PSObkareIypEtBC+x5iaRzR3L3PyKOipPuXOluCIibLdEmmLF/XJhQ/0MXI9+hECLG5iBYoH8dS67 WrzLmItk9Yeh+OnTM6oG+tLs7pJtBmmV5qU+3IC33ussD4Jjy8q2rRcf/Uj4kCjtvoJLPSow4ggU9 IhlvJ5ziMSWNd3XJhmoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqnIi-00BE0K-Rx; Wed, 09 Jun 2021 01:46:38 +0000 Received: from mail-pl1-f182.google.com ([209.85.214.182]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn6n-00B9Qg-Lj for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 01:34:18 +0000 Received: by mail-pl1-f182.google.com with SMTP id x10so11683807plg.3 for ; Tue, 08 Jun 2021 18:34:17 -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=SU3yllOH/J0JpGXFrD3OtM7IjEx3tP3j/eYcgE0Cn9E=; b=oU1U3suREqcUR8q+DQoV+nOF9l7+V7jxKkd2qE+LkqkyCNFZh07cG9+R+F5fNxJEk3 cQkD3YHNjxDcJOzu0gzBshTatLobefQPDj/DKzqbzwx9MmJKknkzxPhRUF49sWb0W2bO GSPdUDYaBGqGA/jnANrtrJw0y2T92z6g5S6nokSsKhtjl5U6h4Ukgr8yPA1WIBkJN+Ni dQxsA1vjjDMjceCj4aWFHX6enVIKBpbBZuNTKJ5+EBVsh6pd503wTo90qSvBubigMVca C6m7mcqgG/euILcG+F0uYuCZ8axZfxVuZLjEnBLs6nqX+xzqQbkabix6SYoBcq1C/LQp xrLg== 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=SU3yllOH/J0JpGXFrD3OtM7IjEx3tP3j/eYcgE0Cn9E=; b=ST2bA/aGFYGoR/+SvabXT+//dvPOZYQvr2IZUVGyLr1/vwM0Lt3YAWOpoNDnpXQxAX iR0zuRzX3WZzUZD1LKBbZHtZEioIaCEWAHqpN5j+9w913s/loX7VrVdTDYfF1m2Jreuv lnaAIjg8OKDxdWbKLLGhrV5uGqCxpfLYa0aEFXzh86GdXRsS9Q9VlY6cTrvqFgWCPo7e htiw7ZVcnl+B56j1fzmfZIQmYjm8jBdPk9Ki8+ukMfePE9uyqISkd8s4nk2HD2sIhPH3 KtS+HlgAW1YE+8WRvmEFACHt72Ngmy6GVv3m81kYNKeLF9uf1JUvUtpIzE8sM8Cn3Wvy kJxg== X-Gm-Message-State: AOAM533PMqKmgE34tGm8nJ1NW29o1VYroJHU0JTD9+tVOhxvlWgmsV3D wTLS0Ghuu3TWEKd0KuGkmUI= X-Google-Smtp-Source: ABdhPJy2EGG18WDW1z0FafQej0ZZkhrbqQ/DOtLGtgMSYWe3RJuz3NX/UdT0WMsW/+wMSKpBeoazDg== X-Received: by 2002:a17:90a:2ec6:: with SMTP id h6mr7924018pjs.103.1623202396937; Tue, 08 Jun 2021 18:33:16 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:33:16 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com, kernel@pengutronix.de, 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, jarkko.nikula@linux.intel.com, William Breathitt Gray , Benjamin Gaignard , Fabrice Gasnier Subject: [PATCH v11 17/33] counter: stm32-timer-cnt: Add const qualifier for actions_list array Date: Wed, 9 Jun 2021 10:31:20 +0900 Message-Id: <9675edda958ee2ca371d271f46445d3e1934ba82.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_183417_743642_50BC6D3B X-CRM114-Status: GOOD ( 12.47 ) 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: Benjamin Gaignard Reviewed-by: Fabrice Gasnier 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 };