Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1295189pxf; Fri, 19 Mar 2021 04:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylMhzu+CW4g9wbAgNPjFO6L4INOLniSlnnyPxWvki701JR9omqRJonXDZ7hJMCidirfskE X-Received: by 2002:a05:6402:2215:: with SMTP id cq21mr9013193edb.281.1616151961458; Fri, 19 Mar 2021 04:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151961; cv=none; d=google.com; s=arc-20160816; b=zUFKg5XcMhVkL3wJuxbMfiAf+la9teuc8il/p5GXtaqMxX9KT2zOHoAqQ88ltf0CKe c4qYXb2T5eK/WL09N4u9p7cWwrPVpMrsKtEpXqhZRAMrOx6S5cInZet8bbhSLHtN0JNk 7/mHYN6SlK8U/70gvzDaacjr51Gd/MbA4Pofu203ZWc7XzHsrfKWEWyiP4M7XFF+J/xa 2yzVg+PHgstNLI7a0dm576i6A31lkTEdWk/uu1Ze4QMT/g34jOQN2o1HQdfXZESOL4SG FrCS5RlfLu9z8q1dHvfrajEUMWP+tbVyAMElc0QIvo3DI/Q5iL50eAzoXiGJhrZHjEQH 015A== 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=/u2CPhZ6rUOBCIUNBfUVUJzsOfzYQHrAipQY//P3glw=; b=G/j0fHYHYN9tib+ZvlzntlB5CnwDzkDKsE7/4Fw8+PevFfOXQIFj8yMPqOWl+c/piw rzNoCM6QiAoEgtOL8UpnijlChWBIVFn+st1oX+osbYZu+iCzrToYMAeg7EC7JRWJiG3E 97rstbLhGUNA781/8HkM3DqXR6twB2l48zhiydnLcrZmgVWmPHIuggobtUC7tKFoj5Pb Br7xqixlXBEt+3kaZNRKxJ7V6wKTTAVTRoXabLFFaJY1OPgt6z6Ccw5by0YZu0+ALnaV 5KAtp/2JlLWFcVt3NkP7fJXloR1dURJOEnTs9XyshNRTj5siyY6X+b9nIjKaHl5miFdW OBDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M6FbohQN; 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 m24si3970697ejc.193.2021.03.19.04.05.39; Fri, 19 Mar 2021 04:06:01 -0700 (PDT) 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=M6FbohQN; 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 S230163AbhCSLC3 (ORCPT + 99 others); Fri, 19 Mar 2021 07:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbhCSLCE (ORCPT ); Fri, 19 Mar 2021 07:02:04 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 194CEC06174A; Fri, 19 Mar 2021 04:02:04 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id x26so5622091pfn.0; Fri, 19 Mar 2021 04:02:04 -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=/u2CPhZ6rUOBCIUNBfUVUJzsOfzYQHrAipQY//P3glw=; b=M6FbohQN6QUpKcRcTQtXxctZgSYOg32ch1cIus2E17bA6hd2xMpvKdX+ycavaIlFrQ S+GGz2U7BOzk1dN8RRwOMWr4NW1le+2dEx3EJkSuT762rwIHCmfuZiPiUSSwfwsmlPKE F4laZsH/rzuyYlmfMPUIDbKkeXatKqP4COm8b8+OABaJ6SVK2xf5PhXJ80QdsLr1bgU5 zmXn8NsMzlZXTh5Alnf7Cxx5q3QsZRa9asMPdJI0gGzl8lJLYTirsH6rPEpTf5aiyHTZ 367j4q8x1MDEYISdNpkXK2Ku7ldTDQx08nNoeuMV2+bhDryD9PGEl5C7dtQIfbmKcQ2Q g04Q== 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=/u2CPhZ6rUOBCIUNBfUVUJzsOfzYQHrAipQY//P3glw=; b=hXdPPd+PZ7+EUxHasmVp+NEQNGFjsYnyxdupqx2NEDL6xWUONOLSF0XIMaaqcZNwYy nzrs8202lK14ixPGLMehojnV6OgS2ZwqjGvGb39YRt009GWHTmwY/75V+CHIM2EBdYSP 0BYw7HQzsmJ24Z5eilS4M6UzSD3x+kF9g8omLK5krqBdRzomm7SQIqcj59NPYekuT5p+ Pv84kwCq3n85CT/O5q6D24O/0gOciEJedckIEA4iGorWGlBPT5cTvWC1Q5+SnrIY5nFe pckCArf8UAs0KmpDmrQqyidZ5O2gl03bx8XuYuY81Dy63MSSQ8wegn4Ar+WQMMY7YSVx spvA== X-Gm-Message-State: AOAM530Sm6mR71jb6UI5o/WTnBeJ+tnefrRep4XXulHVhOBCdQSCVwv0 m73al6y1n69kkcD6bmLtkkg= X-Received: by 2002:a63:3705:: with SMTP id e5mr10731684pga.318.1616151723687; Fri, 19 Mar 2021 04:02:03 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:02:03 -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 12/33] counter: 104-quad-8: Add const qualifier for actions_list array Date: Fri, 19 Mar 2021 20:00:31 +0900 Message-Id: <92caedb694b4c66d9a5e9190f8c4545ae28dd418.1616150619.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.2 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 ae89ad7a91c6..09d779544969 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.2