From patchwork Fri Feb 12 12:13:32 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: 12085173 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 F0F5DC433DB for ; Fri, 12 Feb 2021 12:17:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 84D3164E23 for ; Fri, 12 Feb 2021 12:17:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84D3164E23 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BHc+iQ8ltUzj+F8n92STeFaJReLCGrmSSKu37O6qJ4o=; b=VBuKPItwEnf5NPDkdi8cNGALB hGBvh3hDzdOrX1PWk614hI/ZMaltwPbuP05etXPv6nQ67CL7yORyiZIzrTu3C6bzt5sAcFPR93sE2 hdcps4BcScob2tE+6izGLrtqci3AAxy2vQrfRhzFe6JFpG+TgYiOngqScy1f6spJ7IUHQxPiP2HHm bxVMLsjEouVWE5kWR6g0p00xGwhkMjeQ/bafda1MmATsWOa+NYNYpWif7NB1ZAMDud/JnXgbbBzW3 lc8Sa45ajQ3+vRKCNZpa8fb2E20sPeIN0hWG+PScFd4HGsr384CXzP4DEn5IzgCjjyn4T9QhmZrMR FsLmr4CvQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAXM2-0006dd-Ck; Fri, 12 Feb 2021 12:15:22 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAXLT-0006PO-Qh for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2021 12:14:48 +0000 Received: by mail-qk1-x735.google.com with SMTP id t63so8425845qkc.1 for ; Fri, 12 Feb 2021 04:14:47 -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=wQvnOEOCiwFowILdQGnHkV7MlEe+qaKqvDn1S6Ccy7g=; b=bdsQe4Txc9lwEijLlKMFaPEa0e+EzyJkmU6+anMzUqwzXzWjrQXX64zJKXVt0J5UwR Sebzf93XCIn8+aRZ3aSRjMh+8Z6VrllNvRhbQKeV5yZH1a4BTDW3PCalIrpOuAykH5kN 8rhVzzN3PrKmsuEogm98LrAzrgYK9Q+Rr18zR7idWcoa0vQcRT4oW5/Ua80kIxgWK37k d2yhgZbOWUHkvIrHsLCHEUfjqs8XP7AbNP5zMCFnX/tlbJpVPlbvXUZx3P1FdD/hsCqA WnUvEaIDGn8AZTn4/xcX2rnTujLNcXlfYXIRydGQ6rep13ggvlj0qn3LDZwmzAQx9wxV 4ziQ== 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=wQvnOEOCiwFowILdQGnHkV7MlEe+qaKqvDn1S6Ccy7g=; b=ZL+QQRlBOeuJc1utFML5QkDNK0cuq5N9rOVRzXlfLMWtJWo7HsMxDcTYO313LyIW8H RbwT/hKGmzgEbh7hIgB8Jba0FknK7mEwmqTyw6EoHnY5xvEniYSxNcHd7WiZ6R+dnyWA 3EO7EJ6V22L9AtrLL+zrJOyWllA2EsqtKXE4oaMNQ9av03ibqph7bu3qGz2RK1kcHy+D 0YmKpYblI8U829VXVjqMNZq2UdCiUS9AVXyiD2NNafhYjVxhqpcy4Vrw0gBdCHhrg/ww XDwz/5yw3kgk9naS89Y/7fdewQCQBppIjnnqffY0hf1vGvKf0ZBy1EhMSiLkPPuJdaGd CxXg== X-Gm-Message-State: AOAM531dEDxvTT44XfsSIHnplIrGl30pevlCIOukPkoUEHdUsSPHQ3wO O7K4aQgkAf1K+uc+dGUXYpY= X-Google-Smtp-Source: ABdhPJwelSEgslAQWW2y09Ci4d8oryQY/d8G2mwivnjD0nkdPt3Wu1h6AiyrWucXHLu1Rw4Qq6YYTw== X-Received: by 2002:a37:4242:: with SMTP id p63mr2258218qka.396.1613132086087; Fri, 12 Feb 2021 04:14:46 -0800 (PST) Received: from localhost.localdomain ([193.27.12.132]) by smtp.gmail.com with ESMTPSA id y135sm6278534qkb.14.2021.02.12.04.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 04:14:45 -0800 (PST) From: William Breathitt Gray To: jic23@kernel.org Subject: [PATCH v8 08/22] counter: ftm-quaddec: Add const qualifier for actions_list array Date: Fri, 12 Feb 2021 21:13:32 +0900 Message-Id: <9089abe5800ba8a761c6bf1a83e77dfd2686e656.1613131238.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.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-20210212_071447_992119_A0633286 X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kamel.bouhara@bootlin.com, gwendal@chromium.org, a.fatoum@pengutronix.de, david@lechnology.com, linux-iio@vger.kernel.org, patrick.havelange@essensium.com, alexandre.belloni@bootlin.com, mcoquelin.stm32@gmail.com, linux-kernel@vger.kernel.org, o.rempel@pengutronix.de, kernel@pengutronix.de, William Breathitt Gray , fabrice.gasnier@st.com, syednwaris@gmail.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, alexandre.torgue@st.com 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 ftm_quaddec_synapse_actions to match actions_list. Cc: Patrick Havelange Signed-off-by: William Breathitt Gray --- drivers/counter/ftm-quaddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/ftm-quaddec.c b/drivers/counter/ftm-quaddec.c index c2b3fdfd8b77..9371532406ca 100644 --- a/drivers/counter/ftm-quaddec.c +++ b/drivers/counter/ftm-quaddec.c @@ -162,7 +162,7 @@ enum ftm_quaddec_synapse_action { FTM_QUADDEC_SYNAPSE_ACTION_BOTH_EDGES, }; -static enum counter_synapse_action ftm_quaddec_synapse_actions[] = { +static const enum counter_synapse_action ftm_quaddec_synapse_actions[] = { [FTM_QUADDEC_SYNAPSE_ACTION_BOTH_EDGES] = COUNTER_SYNAPSE_ACTION_BOTH_EDGES };