From patchwork Wed Jun 9 01:31:11 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: 12308619 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.8 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 11B42C4743D for ; Wed, 9 Jun 2021 01:37:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 DA83261208 for ; Wed, 9 Jun 2021 01:37:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA83261208 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=bombadil.20210309; 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=WhtNpwTkRqRDau9rnODriUAPo8Nnj7pfmfbm9pAmtPA=; b=FVqx1J2xRRM8RQ R6kAxYDNrojR55u0aPMnzqt31PFynIMAhAJp7dSbRn7HHYlXvPzmV38e47epvNWYUud8yxA8EJVNI VZVBYWOorV5cIxyplA9XkKUOgdh6SDe5SZQiPZzRoRJ/ZGRRwaJZ9EvcORKKv6CYkGetmscygX7J/ CLffnX9tl0ojs3+5UlY+dhwPjE2e25IU1qzfa8D7RNU5cxh6HHa+qfBJZ2HpyhfVle8a2s5rJyVvH 8wqb+K7OEY+RW01eNfSx0rp1/9lCM6wdXv/bORMctibeD3LStExILUEnpixFfdTBYQemqFPaNfrJO Nmiv96xhjidQ+J7sRlVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn5M-00B8pO-Nd; Wed, 09 Jun 2021 01:32:48 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn54-00B8jk-UA for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 01:32:32 +0000 Received: by mail-pl1-x636.google.com with SMTP id v13so11684010ple.9 for ; Tue, 08 Jun 2021 18:32:30 -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=aCZji4goj7QXlZQ7G+Tg1qQ7IvLJWZRrdogqrbs3ALM=; b=ACkOCpxDCDfZiguYpTYkrtSKfIleiPywiOpWXj9r+yf0p+9zcSNzh0pRtjhROytMNw hLPENnYIIEYrmOAA0LOWgmi/93MX0Jz7pMSbP0qsCMpbEKvblWsiCyEEm7JRmKkGe0eU N4t8z78PaI96dNN32hwBANoqURCS+bM4B1rhIKZvZLuFH+HIQhppFV25f56+5cWwQMxY i9G68ZCiNlzG28JQVCMB597wvPDvlUczxoWo53+UopMmC1XK+bxIx8SN7bkAHKaC3KaR 6DPpstl5RIkDuMJWjIdw17/NXhDzv0F4FQmWSLmN0X+p/WHNMywPFHV3Sr9wmoyFteQf rTkw== 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=aCZji4goj7QXlZQ7G+Tg1qQ7IvLJWZRrdogqrbs3ALM=; b=RZqamYWWFKX2uryLVAjwq+mDLIzZxvO3EYRtnD3G0Yz9RUPjkzZN/Z3vVEYadwINdf UJJ378SbSY3BeQbdN/wBxbcgnT/PtaUg9cdcO8WeKLijyENZCPtlmF+uKDORaUi7Zgao xr627r0uA4vjRTSdNVTZAzSc8tr+Xa4EdKQxstvFrOfthSkI3sqhEmwPwh8bLNUsaIrA 05PPwsFY6rPkTa77PnrnyZ8HpAKKSeLUpqBxUr8IiL6BgWOlt3vyYnfAnZc8gMibi6gO skn8qnGJ9SueDx6p6l9NCT2QIglf4gAMrrpIgDGKMgR+1sgJtSu2STp7UV4oCDUkJwL2 7r+Q== X-Gm-Message-State: AOAM533slrh9vU+nAJ2Zlxi6ITX/7oc2bk3hSVs5qfjQW2lkT4Te64cO D5WGv+4Ey5iSqmnjukELHtc= X-Google-Smtp-Source: ABdhPJw8Wzw+mTITiTIF/fFew3Ep8DDA++vqep06vunlCkFhn0b+E4h8pgkUdr7Z167dUExBJtOWzQ== X-Received: by 2002:a17:90a:a512:: with SMTP id a18mr7852442pjq.215.1623202349999; Tue, 08 Jun 2021 18:32:29 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:32:29 -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 08/33] counter: interrupt-cnt: Add const qualifier for functions_list array Date: Wed, 9 Jun 2021 10:31:11 +0900 Message-Id: <86f7fb77f703cf2508a6b4ee9cf80aa523392976.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_183231_008211_CE73051D X-CRM114-Status: GOOD ( 13.01 ) 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, };