From patchwork Tue Mar 9 13:19:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 12125165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A10EEC433E0 for ; Tue, 9 Mar 2021 13:26:11 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C8C564EBB for ; Tue, 9 Mar 2021 13:26:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C8C564EBB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=I1iqj/6AZd/y7Bm/QreT2/KylvQIxx/X35vtSQSsSIs=; b=eJf7MKga8z0mhUClNKaPOdk7d WcXANcmSlM9X89xt5CueEillpKQ5mS50+vjVTUj7lJU30sZbbYikteTFo37X1BVtmAboBV0Cer4xo uFtLi42yhu7z5DINzqwq5TBd8xSX5/bAueBNy64EdRudkLpI7iKKJ4wXZdokfqxYYvJeVqzeSRO7z gJ79wFjY2CFigmlapy587RUuEbes5eocXDsFcw++P7WNoEzf/XZA7Hx5UvpU/9L78GopClo4iXbUx JYVmzdllEn33zH78EqLGic23UvBAdhueGN1vsTIjkZHtASyZ6xrKV+BTipGcp2NM/BI3gAB6kgHub kVp/tEKdQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJcLL-004baH-6T; Tue, 09 Mar 2021 13:24:11 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJcIA-004aC2-4M for linux-arm-kernel@lists.infradead.org; Tue, 09 Mar 2021 13:21:00 +0000 Received: by mail-pf1-x431.google.com with SMTP id 18so9454769pfo.6 for ; Tue, 09 Mar 2021 05:20:53 -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=HvARqXgeQ2fZeiR/U1XlXXl6N9XMxqOiCPuY7eJJp30=; b=daDaJJOuSYYv2U02zs+uchgqbT0gUVfefQebIL0i4wEieLWddHnNzkXYRuIF2Lcfkg PPYTwLFD4JRIpZ244rbGj1/4gruuuGVHk5NN3zyAwjTSUIcLoBJovLdzbu7mpvZPULpu ZDUUi2D8sPog66u8TuDPAv3Z67uUxKzwsxFfmepV8Z4Vhlh1dqzcLGG9MLSShZjoEdPy 1wI3yVsYJXhAjlIeY8+VWegA0dMrAh7awbZ38Nb8GFrdjE73E5ltkLM8KyZsEU73IDAP YxuC+r8czFtxV14NhFpXVtDsCn2m4WsEjD/Hj8CevL67DxMUJdc019sOgqgWggoo4QVL R7og== 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=HvARqXgeQ2fZeiR/U1XlXXl6N9XMxqOiCPuY7eJJp30=; b=P+aUIc2jPyILFFGYu5O/yQou4z+w2PK8ikIZlNg1uNHzE3TxxrxbOkt5hEr6nk7AeA WNZLTb2Ev8vc3ycb3Xrn0WqIlT4LT9T8fnyIdWTV+n5EKfmft2ThzblhQDx80zsEiw1j KeQ8hP8fLkqTAkq5RY/PZ08zF5yP4RsRl3XL2GQf7fLOc5A7EA4hdKjEqjOjkAYCal3m wq0ZowIa0EwcLY2VjXmpdEKEK27OKlFZDOEhAUsWaolabaHO24pL9ypvVES0nZxZcJLZ 0ooUxchOcJXUIS1sSwLeyguB1y2VxTdOpMcixLLTEwJBWi5sVrsvY7exnZnTZSoan9YG URIQ== X-Gm-Message-State: AOAM533Q1KOgvEG4XQFFh/Cw+sYstLELvNWDQc/8QjGBMt2n+PMe6803 sqFw4rCQKzJtvsVkwj3S9ZA= X-Google-Smtp-Source: ABdhPJzRAXelYHDtirlTtKesTFBuImAY941y8ZqiNjYmDxoddlkFWj+wWb14a12LcAATmO1yfpjUng== X-Received: by 2002:a63:1946:: with SMTP id 6mr14219508pgz.359.1615296052621; Tue, 09 Mar 2021 05:20:52 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:20:52 -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 08/33] counter: interrupt-cnt: Add const qualifier for functions_list array Date: Tue, 9 Mar 2021 22:19:21 +0900 Message-Id: X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210309_132054_507448_319F2EA7 X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the interrupt__cnt_functions to match functions_list. Cc: Oleksij Rempel Signed-off-by: William Breathitt Gray --- drivers/counter/interrupt-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/interrupt-cnt.c b/drivers/counter/interrupt-cnt.c index a99ee7996977..827d785e19b4 100644 --- a/drivers/counter/interrupt-cnt.c +++ b/drivers/counter/interrupt-cnt.c @@ -112,7 +112,7 @@ static int interrupt_cnt_write(struct counter_device *counter, return 0; } -static enum counter_count_function interrupt_cnt_functions[] = { +static const enum counter_count_function interrupt_cnt_functions[] = { COUNTER_COUNT_FUNCTION_INCREASE, };