Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2544169pxb; Tue, 9 Mar 2021 05:23:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjgUFXQ/iBQH2HxfUgkiNVPTOR1xzxTMq1ycPNFcLU+cPvi1dkUZy1tgcGuwRhJij/icwB X-Received: by 2002:a17:906:3acc:: with SMTP id z12mr20682171ejd.494.1615296228493; Tue, 09 Mar 2021 05:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296228; cv=none; d=google.com; s=arc-20160816; b=Cpsj9U87oqwSociSQykj//tt1FTyjdjywHDSsXhgkmprpfGjZnBMgX4pUvPK48689K nt50ufgSKea/fonjFhTRaKVpEJ7fukc2peruttyH5SanJjf0ETZF86cATssE7hCPb0FW s/znJyZyLJt66UHLnKohgAvh2ee9T7+KhFwrfMygkde3xYi+K0KXmjm37bM16syT+ady lj3X3ySzjrzQmufVXVuICOX36JlbOfYY5SeRU8+AQ4bLMP+01PBc/eU8eSPpxULsdRqZ hKLrphR3f0xGhXMYOFHRRD5RUxgFVurxaGSG+mdC0zO4JU1uU0pvUVKJyv9ykbzYXLPm 1SUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rC2Th++vNt7CqGAj8WhJOkxOFf8ZEs13/9ziRoW9ymc=; b=ddoW8sAKyH1ySnETDomBxbpYIDZXEHgfEsI9da2R7axModBH6zFHksayQqvB6VvnMc LLiXMkfB2hcadkvCemottKo4+E9o0pPoB3LxRCJeEdDW9DzGHm0afoWFR70elo4Ir9eg 4UISbXbm5m9nt8SyZiPB5Wujep+40MI9+sRvCBlKoOBSD+JD+X/kC/SnzyVe3gp4j9aO GuvvacnFJjUDYjscHudXCQXp8wv5JSJag0ASP6oY3+g7TABtRYp/kkpQ15Mv0P2PZLF4 GwHiRVkYk1k2cqqXrdiNgDolusy6/CSk7RrVRLv2MjYq2lFZLZvb6ESgBBBeQHFh8MnI hW0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/4zwhWg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si9161305ejr.278.2021.03.09.05.23.25; Tue, 09 Mar 2021 05:23:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/4zwhWg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231673AbhCINV6 (ORCPT + 99 others); Tue, 9 Mar 2021 08:21:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbhCINVa (ORCPT ); Tue, 9 Mar 2021 08:21:30 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7B04C06174A; Tue, 9 Mar 2021 05:21:29 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id y67so9520693pfb.2; Tue, 09 Mar 2021 05:21:29 -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=rC2Th++vNt7CqGAj8WhJOkxOFf8ZEs13/9ziRoW9ymc=; b=E/4zwhWgcU4xyOXY8FDQeW+SR9ur9RmudK7zimF4LzKDITpUVG4827s/iONgSA9PpG y9Tby0YfFWbRhVpxHArnaYYiqbKBuTV5jVQyckjVVAxHjufzRbu70bxnbXuYrr2sKz78 Azqb0OjEmY08D5CCel1gMdHXed8HtHiT2xBGNlLhKuS/Fs2W+/9HpIe7RfjBM1uWQOJ+ czzF9qSKODr59CXoLqF1iJTdYqABa64zXh00WbOV2AMDX8GPj/rDiOYJcCFVqAfcMfE/ xsqpJniF26aFbx9eCEEI+DnaWOsEKuW4ns05JQLBiDwb8tfqP/WNMJfIxzpH2me97cIL Enbw== 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=rC2Th++vNt7CqGAj8WhJOkxOFf8ZEs13/9ziRoW9ymc=; b=JUxIiVYgyPyqYayEDw4CIDSQxwhlGmPoCsq26gcLzgXbkCUYmmD1UqDT2q5Og+MCNG 0ey3fP6Uz2oH+wdd76fB/cwaW1/67LUzacAu7rLaOtekqze8j3A08qeNKBSQS1vAcdq1 VtqXtmDNkXZxhpTJ+lczo/k0/KkLvex+/kUSdtxkNfbGmvB396drpXZyu9zzleZj3YA0 BaptfGbAPQF3+b0BU2VjciysApM3t51DpYLgm/DecQzpnL6grJtUtvLmEBLhpeJwKowF erHFUurg0TdvGn1k09WgzDvyPgWEndzcvWIP/XYoKfFnBQBXrcvM4M75zy1/b5HHhp1X DLWg== X-Gm-Message-State: AOAM532Rvt+7hkeM6dU4xqE2gmnPJgxIkUwLha9B6rwVGihO/ii997BI f1i2FJFL1hiq4xoNveVAEVs= X-Received: by 2002:a63:2e06:: with SMTP id u6mr9962931pgu.444.1615296089500; Tue, 09 Mar 2021 05:21:29 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:21:28 -0800 (PST) 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 v9 15/33] counter: microchip-tcb-capture: Add const qualifier for actions_list array Date: Tue, 9 Mar 2021 22:19:28 +0900 Message-Id: <08b2f787df2965aca63988ca35e58133cb4e2c3e.1615293276.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the mchp_tc_synapse_actions to match actions_list. Cc: Kamel Bouhara Signed-off-by: William Breathitt Gray --- drivers/counter/microchip-tcb-capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/microchip-tcb-capture.c b/drivers/counter/microchip-tcb-capture.c index cabcfebfc799..51b8af80f98b 100644 --- a/drivers/counter/microchip-tcb-capture.c +++ b/drivers/counter/microchip-tcb-capture.c @@ -49,7 +49,7 @@ enum mchp_tc_synapse_action { MCHP_TC_SYNAPSE_ACTION_BOTH_EDGE }; -static enum counter_synapse_action mchp_tc_synapse_actions[] = { +static const enum counter_synapse_action mchp_tc_synapse_actions[] = { [MCHP_TC_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, [MCHP_TC_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, [MCHP_TC_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE, -- 2.30.1