Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1293672pxf; Fri, 19 Mar 2021 04:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWQioOztSCbY51pK5JFsmFD506JGVgnbKFYsfwVggVJjfkekHTzvVQrsrSHCY768gQ5cKH X-Received: by 2002:aa7:c1d8:: with SMTP id d24mr8731489edp.290.1616151849869; Fri, 19 Mar 2021 04:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151849; cv=none; d=google.com; s=arc-20160816; b=rDd9oNtKCmFUOUUTf1ie7xDDIc6vWRQklSSFTDaRBwoZdfkNupPhPCA/qzpQBKN8qZ ksMlmQ4CIMmT5ZkZ/je3XGUH5tP92Y25GiFy1EnX5yfBYDEbePVt/EaY8dx7+H3ZqiEN pcZ6urUiNnPLu8jkWCHFTD5XuANA8u0VgorvN8iP2ovCXqYesbY3k9Rrs0lse2IitZgk ZRTBqSIygW/FDr884Piu6ioCJwmIS085bflMGP5/PvTUWfO2xlymLOSwHdN3N3Lz91jm dQtaHsmQneo+RZjIwb8Whv1bSZLzQFcFFa6vmDCdN9pIf7ILzUzUPHU6JQtJ6Zkm3FTu +HEw== 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=lP4DMV1k2SKwBGG4XgbDMs9P1GWZ9vtwOGQw009rdwI=; b=TgQizXw5HoVTs9VIQ35VnM+pXVKf4OySo7qvMl7dI06wvQnoswIrJE/meNbH9WeZv+ jGefRqiOPd5PRGw/kjTlTAq9QTmY9EQpF3bja/L0iMIOnrZ3MYQMLKd35bHzJ5LXiL19 5F4zxa3fYF80PUs9dMUCt+FJt/2DzZslMs5f9Jqp49juX1I7QQt5zp4MSS8rMCiz/QMu rNQsJMh7ZbGCxnd0PosXyW3Ft2i5ceuqp7KXnnZbuL8cxqQiGsEZ7LAUe1rJqmjgCSwe R5DJ+3G6bkUmlQmwJUxb4OeS2z95BkCV23OREkG9Xp9hrYkI14+rHGPLX3TqktyCwKL3 wNeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KXlYrHJX; 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 h1si3910282edn.233.2021.03.19.04.03.46; Fri, 19 Mar 2021 04:04:09 -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=KXlYrHJX; 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 S229995AbhCSLCw (ORCPT + 99 others); Fri, 19 Mar 2021 07:02:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhCSLCT (ORCPT ); Fri, 19 Mar 2021 07:02:19 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAFBDC06174A; Fri, 19 Mar 2021 04:02:18 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id f17so2786856plr.0; Fri, 19 Mar 2021 04:02:18 -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=lP4DMV1k2SKwBGG4XgbDMs9P1GWZ9vtwOGQw009rdwI=; b=KXlYrHJXMRHv6/1HCs2KIjiBVTKWFcJfWoq67AacvPXMLIx+iRiPEyXQpwMIqLG7ou Wcd7Zj9VztkSNbvD3Gehrs7eVsyKUTEwfZBgHJl3cYLBe0X6X1vTdIMuiLP2wpzXSqRY Rlm2iL0l0mtBWVcW5IHqZcpor5yYkorjL9n32skrpRf0N1Uf5OgO+cCKI0VKIY7+c0du VPNSz3dd+Il5jrGCtorVnVWMKLrTPn7HmHaGqs7FhZH/j6zG7Kzr+g2AW8UNE61/BLY0 nq/D1ajtYgjR435gVplkiX57/0+lormJ9Nm8RgkTghuZGJisD4o/AsiBX+cD2+lzwHKo EkKg== 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=lP4DMV1k2SKwBGG4XgbDMs9P1GWZ9vtwOGQw009rdwI=; b=mxWLmLLTFSEeRTp4srU+7XLGRMP8I38X3uLDGYdYlhpFzNe831TJadrPz0kurMuMwp K5p61xyUsrOrSQq2g+FH7rlOxaQIah1GtNh8eA3GliHlRB8e4yjn3hRmOvnFxKmg1JrC 49K6wC8pWA+NiyCTy2t4Ug0sHP+Mrw7Jh4FyCPuAoOrrAy8HG5BMXSfbae24kGmkyGcG vng9kLP+AKmMw5MKYnDrjFwrHWEBz+ueGQ6grLVuDDx16BiIWKmrSw2ajM8ydeaBBcXm 4epbdjKAVqbpHXQRwF3np7Etr7T80q/INuk9NFBT3AIv1EPOo8OBgN0mplgyATafZ+Iw qGYw== X-Gm-Message-State: AOAM530HA+8fFYu8bjf6ydYZ8TeBie29GHCZTwdmTJeoKd7HzoT2BXKs 6AiSAbCNa5+FSahV69jWBsI= X-Received: by 2002:a17:90a:69c6:: with SMTP id s64mr8922168pjj.37.1616151738483; Fri, 19 Mar 2021 04:02:18 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:02:18 -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 15/33] counter: microchip-tcb-capture: Add const qualifier for actions_list array Date: Fri, 19 Mar 2021 20:00:34 +0900 Message-Id: <5043d74887ca245274e535633a8eb472f690bb7b.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 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.2