From patchwork Fri Mar 19 11:00: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: 12150731 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 762EDC433DB for ; Fri, 19 Mar 2021 11:05:51 +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 9E90464F53 for ; Fri, 19 Mar 2021 11:05:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E90464F53 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=pbDWPWSMhYkS4xQakQ7bgisI4DkVdkBKZy86k6NFWM4=; b=JejsA6nHqqCI03uc4s/Yr+Pb9 s04Xk2UWVqmoatkNkcR3Vd+PFcq9tauTHdcUdNr73u6AoLAqKIiJcdKAF/n5fkUoOkn+gtfrsvy+a jpJUFgfmMFP6jG3C/mZ7zEDrlZl64A213W5Fze9v81K8950iZuUoB9WaYfIiGyqfTy8vBePOSw63A LiVqcCh7pGDWvKlrwKWjU/1fojc35XEwPaBkY0S2puy/gztOnzVcbKwK8fgNPLmTZZ5aWTRB6hY2N KlOQEXWTFL4tXiSgZ7P6fwlm7kFmMhqIiuZjw+qhp1HRPSvb05ZG+m12prpj5ATRmX0z1iTDwquHT JooQNyS5Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCvF-007ELY-7U; Fri, 19 Mar 2021 11:04:05 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCtO-007DRF-8d for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:02:12 +0000 Received: by mail-pj1-x1030.google.com with SMTP id ha17so4485332pjb.2 for ; Fri, 19 Mar 2021 04:02:09 -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=o9szktyqVt36+WoTRvGFyjpFpuwX5mGOXWZAwxNI2o8=; b=EMmwrsrPY2L44xoGNJiGwrnlZa+lwCO8CezAqpflW1G8p+ctWLKic5p2ddU7hWwSfj AoqInfEQicqM0k1Kp5hbJ0YYztbI+LSnP5MRSbibyFqFcwdrT2JYDpYBAprhKkQDz9JF PXAcwaPTqcSE4451deTVvkHAs58NEg38VmsOK1vvUVvYIIO2EoRH1ouqFWt31kg77drP tsGPHvE0VL1P9ple9PkCaThQPxIcLWrDueIPEFUG1n2QYCayBsOxL8nEGyAqcn1/DSD4 W7bpY2PjwNKI8UTJgmtik4Ueo/86b2UyJ+gOVIqa5pY+/ChN1bOx0kFxtEIx1UTk4NYT 3jVQ== 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=o9szktyqVt36+WoTRvGFyjpFpuwX5mGOXWZAwxNI2o8=; b=g3dFA3USYLllQIHPS51G00mTR4MnOGpPyplGdqLKFqQnVKA1FlaTbF9xPznYHaxfB+ S3g1p3L6mMD8PaBMDPoKHDkv1/okR+fe/d5Oa3bW4o4CxDifvTKn6H5PyyI3+qSB6s2c RwNahcsmRadkBWxl5j2LQh/+Qs5uNWNUImGafMcKNSY7w7jRLUKlZwG1Istvlm5tyr6E kIQUP2pCkZBqvUYVaQLQu49SsGh6cWmcu9WcsssMtRUtqpbUoL4dXgeu3T56kCfttV3S JBT1lp94LxBi6Y35ditpoDChVH8ZrWZCwnd+dJfHKXXHQJRR8pvB1hXz5K5l+AkHMawU acsQ== X-Gm-Message-State: AOAM533CCmjPi4FaHD8VR/5N0+Y+W5vbd2UI6U84JJEdA3dhpQgDZqGH bJ8NTx3hKt9iJmL8XnzvdM0= X-Google-Smtp-Source: ABdhPJxL8b/9G2djwsqj4texkb9XQeo1yDBgnCWHkTsY9yJ9mzWyPkA7BuNdLizCBhAJs7phJW3isQ== X-Received: by 2002:a17:90a:d911:: with SMTP id c17mr8789491pjv.98.1616151728644; Fri, 19 Mar 2021 04:02:08 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:02:08 -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 13/33] counter: ftm-quaddec: Add const qualifier for actions_list array Date: Fri, 19 Mar 2021 20:00:32 +0900 Message-Id: <26cb41a51178856fa99e2d8e1912dc9e4a37b605.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_110210_718722_94144B40 X-CRM114-Status: GOOD ( 12.43 ) 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 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 };