Message ID | ae7132b943c51fb5b7a9c9bb247c26bc74c9a8b6.1616150619.git.vilhelm.gray@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=5UrE=IR=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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,URIBL_BLOCKED, 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 1C85EC433DB for <linux-arm-kernel@archiver.kernel.org>; Fri, 19 Mar 2021 11:04:33 +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 9B89464F04 for <linux-arm-kernel@archiver.kernel.org>; Fri, 19 Mar 2021 11:04:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B89464F04 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=8kB5iAZsc8CW8gF08Gjj9nEXSFRvqAQpxvWuDOBfsSk=; b=Yo/3kiv9TPxLiX/Ghgw1dT/R3 bFItPUeAXWmiYQUAD2IRhTck+Bx/RCfrXKaHxoRpMwMMyzejiCQ33henxMnNEv3E/Vpdfmm921yxV HOhQYjDsQNPOcFoIcaqisJvw3Kq39Fcxug3+FJy7pRoDhmjU/QJtvbYtig3CnBEvfyqJQlCY3wAIS jXWYh8o7f+Np5rZA0zTP0wq5LstF0M3UrliPZnsiWXwcCsA3mTku6+4K6Mp4+IuIVY1j7CVKvkwue +nHfkIU8QOt6bd++5iRy0Djva4ojApqSu7uFVHmbK856rKkf1FyTt1sMZG69RSw1yQJxyYRDIbItm CISn2f55w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCtq-007Ddt-K8; Fri, 19 Mar 2021 11:02:40 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCsy-007DKg-Vp for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:01:46 +0000 Received: by mail-pf1-x432.google.com with SMTP id h3so5622713pfr.12 for <linux-arm-kernel@lists.infradead.org>; Fri, 19 Mar 2021 04:01:44 -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=mCIsrz/xNvA8l6ynJhWaN/C4nkgE8ErMLRxbZcB8jd0=; b=am/M0nVLA6ftbdIkBJC85jGx6ceAzyM00ClgAXBg541rE5bK6A+wFcQfakS/ZWqkg1 gamQ9xCPIsmi4YpN0aQqREqPnl4PS6Q35iX09W+AJD+ypBMZ+Z0mpi6waAoh+8/MARTT cc33HDM0mNeAMW4lN2dVsCVp1ZqWvKxU32LqbchgFLVV10rVNmfquOneDsNtgilXi813 d8r4ROtk5bKf/LpcDkE8NOpzLDgvcDuGEsGRH4os16N2y7bPQN0ZmETIYRF5xB4LO2f4 JsixGDErfCTV+au9XB15Uusyu3pFn9SjhTT7a40KRd1ZsxoyiNIANFKs/3Ecrsy9ejwH 9trw== 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=mCIsrz/xNvA8l6ynJhWaN/C4nkgE8ErMLRxbZcB8jd0=; b=CfPUW1W9CKKz4ogh6+uu2zLgKqs5pxO9b3tJp8cv53P8Xy1X3LhvqQnn00ymoZThY3 yOyCzsTU4MR1+r7qvdefSqqIHk7/EciEWX8bX4x+DKu3GNf+h7KbV6uOPYB987G1hxvj xNs/WAJSWk7p2g64+OuobQJr0sgwo45rALt3cQAhNkRc6SFVzIabVYIIPAtGZSYpfAGL FukL0nGLRkc8SA4JlmsJwUNsGMJxesYLgj7osoUdFlYfHVnghI135PfMvUT1XQeff60T YW6xmRM/ZjWBmfPilOQzKkEqm/EgUHMGuVp/0zupn9FEfqRe9bNKfUSEu3CIGujfM4BY c7DQ== X-Gm-Message-State: AOAM5338jJ0SZcdpZM9w0eKxthZpWsFyb6tU5wq533JcSseHtotYmJ9+ +kax/agYLmbcv5MbFxg7+TE= X-Google-Smtp-Source: ABdhPJyKv5HtcVkjQgECZi+ZwlOiOa96Ec+AS01yofO/WrXx2aXH4fKPJt8mdlUA9B36kq6B2dkFgg== X-Received: by 2002:aa7:95b5:0:b029:1ef:272f:920c with SMTP id a21-20020aa795b50000b02901ef272f920cmr8767965pfk.21.1616151703668; Fri, 19 Mar 2021 04:01:43 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:01:43 -0700 (PDT) From: William Breathitt Gray <vilhelm.gray@gmail.com> 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 <vilhelm.gray@gmail.com> Subject: [PATCH v10 08/33] counter: interrupt-cnt: Add const qualifier for functions_list array Date: Fri, 19 Mar 2021 20:00:27 +0900 Message-Id: <ae7132b943c51fb5b7a9c9bb247c26bc74c9a8b6.1616150619.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <cover.1616150619.git.vilhelm.gray@gmail.com> References: <cover.1616150619.git.vilhelm.gray@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_110145_132696_5A64D0A9 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Introduce the Counter character device interface
|
expand
|
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, };
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 <o.rempel@pengutronix.de> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> --- drivers/counter/interrupt-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)