Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2892935pxb; Fri, 12 Feb 2021 04:18:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8lcqt5y43gawfaVGuGTqa+LG0PEoF/zBEy0SyUb/h3m7HWQ7QmmROh8ajc62kFBVDz4Cj X-Received: by 2002:a50:d302:: with SMTP id g2mr3059140edh.75.1613132292512; Fri, 12 Feb 2021 04:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613132292; cv=none; d=google.com; s=arc-20160816; b=B1HjPRPjWg5WNCUNKQ+HqupFN0gG+qUs6hv/n4wTEg9b1Vk/lPcnj8cNxP66TZ7nNF u+wmX1ykCDLh++zGL6HiSQmXd+dj7DHv8189ZckaOmN84x+Lidmbklt6rXCvkDc10A/5 D7iqAE+pAyGc6KaHYHd7/kd6ZwYVXLLfD7TDDMO0Ljp97uUKq1C2fA/KUutAfxm9jYx7 seTS7D88UoxYElxCP9RAYqk7+5v0qz9fOYaZIq9twaCf6czRQVcg2WYcAxUEtTkunz2V hL/L2nYBct/eSmq9qicNmf0ohVNqZig8a7/jd0nYhR/U7AMlrgOxFzMez+NFDmYsGIQ2 Agjw== 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=4RVacsqoYzmylNKCath3c3Ne8oWPnlwk8NYh3tn8zeA=; b=qpr8euX1rFm7blx3ZrYrlpeQcr4lKkELRPRcg3qzEdU36j44R0cX800IucPYGZQL5p SBj0HE9C54dafN+ItgCtT36L6KhcRWm77vrv2q8Rs4Ll0DNBlSOyUjG2YGtGMLtouImJ RpCIfNevcO+GeG+WiR+g6YFG1SbElBZQ38Bftm2u/PmgmyuIpfcgCbaRefAg/WOMgwfk FG0V36H68hLwmCDEwP5UTa1puPX+R+8l3GEh2vAbOqw7vekoZLk5nlJyHIhraiaBaH7X okDG9Ii91QiNohc9SDtnl5ln8ZrrkBP8/o/TLFmFChr2ON+Fiepmxs2H+kHpxCUaobr4 ZlaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SKctp4vD; 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 a13si6069376eje.617.2021.02.12.04.17.48; Fri, 12 Feb 2021 04:18:12 -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=SKctp4vD; 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 S230383AbhBLMQM (ORCPT + 99 others); Fri, 12 Feb 2021 07:16:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbhBLMP1 (ORCPT ); Fri, 12 Feb 2021 07:15:27 -0500 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8321C06178C; Fri, 12 Feb 2021 04:14:40 -0800 (PST) Received: by mail-qk1-x734.google.com with SMTP id 81so65819qkf.4; Fri, 12 Feb 2021 04:14:40 -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=4RVacsqoYzmylNKCath3c3Ne8oWPnlwk8NYh3tn8zeA=; b=SKctp4vDgTsV14fVKI7dhcglVl2L1UAIHQ/X/m4dhyJAABbwmQIbaHLQCJV0LfpTNg 9QGhruNMC84onXhOn1rLtQD4JFNzmReZndfh6wDUcHzvjmDxvfMpOz5M9Vsph/RE5cad BmB90edCp+b5pgdhWxp08y1zSRWSZRrhLlKg26/XsPy6H580e23NRioA9rG25ER/fHUq 6aCc9iN9h6RQcgwtuGrvn1kBXuhLfDfLbNt4eNqduF+6iHhx5zcYWsE12yuwhoeOEiDu rQ/8qWqSVjmUFqiMoTx2jJ5R5upBh+b1dXfxZkPcSMVF/u4QwuxQ/DdEnDFQGcPhbJVd Wzpw== 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=4RVacsqoYzmylNKCath3c3Ne8oWPnlwk8NYh3tn8zeA=; b=iNFJ0vqgGLxOi7o+PU2HudrkS+j2QBqgL5KVkej5oeQC998qUbYdwRj6bqiQbD5VJo 4CD5kFVfUZVFEBls0SRax0BFH6ut1guRIfdMbmcg+lLAobALpL4xGCAq5h/aYjNdOVnq M+u4TOq/hdbAYM3PczYXzTSMkk7NyuhqB4qMVkrzLKVWGIecS/AQ8keCDEsAzK2J9uAS 4XZZeo7ho/LSXhosavoDwcSHoNUkf+xXrxTCQpTDdh38LkfBs8tCsYYXG6b8fQjSEYt2 HF2FA8jeA/8W9E8/K0VDR3AcOVxBYjrpMzrYk6IHsXfamkfESSQj0AagSS2btSf3L1Bc K1Fw== X-Gm-Message-State: AOAM530HlclXg7qpbQfocIz8Y2vaqC0yMs+dUwm9MZO1k+XNddoWXAiM P/8nma+qKHFRy3aFaZ+2Wnw= X-Received: by 2002:a37:6484:: with SMTP id y126mr2179765qkb.430.1613132080125; Fri, 12 Feb 2021 04:14:40 -0800 (PST) Received: from localhost.localdomain ([193.27.12.132]) by smtp.gmail.com with ESMTPSA id y135sm6278534qkb.14.2021.02.12.04.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 04:14:39 -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 v8 07/22] counter: 104-quad-8: Add const qualifier for actions_list array Date: Fri, 12 Feb 2021 21:13:31 +0900 Message-Id: <0ae8373f4e587981a409a36cfea70328b5153ed3.1613131238.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.0 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 quad8_index_actions_list and quad8_synapse_actions_list to match actions_list. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c index af4e0503b074..9a96296b0625 100644 --- a/drivers/counter/104-quad-8.c +++ b/drivers/counter/104-quad-8.c @@ -305,12 +305,12 @@ enum quad8_synapse_action { QUAD8_SYNAPSE_ACTION_BOTH_EDGES }; -static enum counter_synapse_action quad8_index_actions_list[] = { +static const enum counter_synapse_action quad8_index_actions_list[] = { [QUAD8_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, [QUAD8_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE }; -static enum counter_synapse_action quad8_synapse_actions_list[] = { +static const enum counter_synapse_action quad8_synapse_actions_list[] = { [QUAD8_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, [QUAD8_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, [QUAD8_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE, -- 2.30.0