Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4924291pxj; Wed, 9 Jun 2021 05:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPQo43pOjV1I+IwzBqht6FUKKelv4a/lyb4x8mGeME84TGf7Mar6Ie65HVotf6vHh+Hvdt X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr30444997edu.346.1623241343719; Wed, 09 Jun 2021 05:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623241343; cv=none; d=google.com; s=arc-20160816; b=MAAc44AI2/Flqw+tu1Y6jGSMDbFbstQ6oixB96UvkAgebDnLwE1bReZVJT4Nu6tjIL mH/scp9HQi1ie+wJ3wyfiwFDWoFrQAyo8Cg3vgM/KsFBJb9JNOAZVtLiSODPwOuNET4I hZDjyB137JsZXXx22RBjNj+eGG8YZZgV4RIDakkr3ZyONKpBt7NlvShvHRws258qPRth idPGGg/HoHeNaYA7a3Xgi6aiI+X+XmnF0qhBMcR/bVJ6k/EwOrjcb3mtXE5SZqA0AxDx rezWAw9t7GcsGONBKbmZmn2DjIYhq2yX6MPWMcAcv/ja+RRjgyXYV2x5g+jfRkpKxZcT kD5g== 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=QvDxZk7tQB+qPWeMP5/A5ST4dMAl9tR54BVIdJolS0A=; b=t1WDHbTcaERxJr4qD+As3rlR7sgYY3hQCWQNjpyeQTYBc34+K+16f4YVGSGVxZoluB wH5nU74wgUTQVSftt597fDdKiJq2jw2nmAjhnTolBrx1zRV+OR64WJ4aJaYVbU1znS64 eaB8kymu6go7Ea8ZyqalsG+JR0m8YrIFEyxM0+WLZ4YLh83ryTpbBNHXq0absuoIW9tx p7PcLg1AtLLhrjaBQYWxGhWbtrpK2MzQfd+MoRdd/iYwyuXYVysffVXb8wFCYokHVnyD YU/BozYaP3Q+IXB6fw7fJwNW/lL7Re/BfdFsUYyMQhddpaoFqz69QY4IhxPnvdawBYnn +KmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KiHWgCk0; 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 j6si2161644edq.137.2021.06.09.05.22.00; Wed, 09 Jun 2021 05:22:23 -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=KiHWgCk0; 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 S235982AbhFIBgS (ORCPT + 99 others); Tue, 8 Jun 2021 21:36:18 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]:35356 "EHLO mail-pl1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236054AbhFIBgM (ORCPT ); Tue, 8 Jun 2021 21:36:12 -0400 Received: by mail-pl1-f171.google.com with SMTP id x19so4549021pln.2; Tue, 08 Jun 2021 18:34:06 -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=QvDxZk7tQB+qPWeMP5/A5ST4dMAl9tR54BVIdJolS0A=; b=KiHWgCk0fMMuPdY/N9oF1xeLIsZSAzMgmsgZApr4RK9jG6MVI6mEY0HIz5UhLsMG/y yLnZgBvC6SdBhXebLewyHqxSCgoU5G+OpovEKrXIQbW9kIS+bp7i6FILVXSJOqWpBO7V SYby1ZrNHw5KIwqhdEstKb08RFH2U5d2YFYRPWD1J5QjgSfzj2fpedKp0qUpft/UJ1vz 0Bz3uAHrv3baLXfQg/zLemXSumnFo8zHsFGlsDNZjho/BX/hwpyb7anI4cejTKNVdYSa 24jtuZadKmJRCsAo2u1lQ44PNcxTwClzvzhU3IgOo1WdziaJCJhoDxWGe0PfEPGO/RGK Q8cw== 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=QvDxZk7tQB+qPWeMP5/A5ST4dMAl9tR54BVIdJolS0A=; b=KN6pHpzn53tmb9BhoSvJHSQlopeQ/4ywIlhhJOm66c2K1HFNTINJVlMOOKdonA6ypt qV/N09f9RbHOnY4IBuZQWVqTZuw9yylW7tpE7fvR1hCbhBAwz9QZgnJf0KHsgh4eZpj3 iNgSi1NmO80SWXJ2azaCT6YIJc18Cpe1S1Wawea9uALhSqfTa26E9YYK5v2tVf6brxXi L6y8X5DhSVpKVOoDDrR0bs9Dm3VEN8madVRrS9UgiNwbIvEIy63pmDtXXar51p20QKEI xO6dLi/dHvVrhXGrqIUWQZ0UucYA/0C5FUYiJVgi1PT8MJLkna75Xv387HeXR7pE8+s0 cbbw== X-Gm-Message-State: AOAM533AIm8ZyihZ/jr+07GmtR4sdYH8rDF3k17al5LyK4M1qGJeLst0 6LrxTFAuQKTY6WAOJ2okCe0= X-Received: by 2002:a17:902:c20d:b029:110:483c:b965 with SMTP id 13-20020a170902c20db0290110483cb965mr2920907pll.77.1623202386223; Tue, 08 Jun 2021 18:33:06 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:33:05 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com, kernel@pengutronix.de, 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, jarkko.nikula@linux.intel.com, William Breathitt Gray Subject: [PATCH v11 15/33] counter: microchip-tcb-capture: Add const qualifier for actions_list array Date: Wed, 9 Jun 2021 10:31:18 +0900 Message-Id: <165f9682ce308a60a477aaa56fdae7bc949dc218.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.32.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 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.32.0