From patchwork Fri Mar 19 11:00:30 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: 12150733 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,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 C7033C433E0 for ; Fri, 19 Mar 2021 11:05:51 +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 C168C64F11 for ; Fri, 19 Mar 2021 11:05:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C168C64F11 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=Q25GWibaaav/0eXPVymNAfHdcK8xmyypEeiYWw83CuA=; b=U0KMXKYQAZ6/DxJHVipcQVfP2 dXu0hlDIDuUNcKs9+eROfN2YY6w8OCWn+4BAWBFWIgj2X+aTOUoQVHbJNAVPxVdOq1RxEBtQlhyr1 xzkaqoprzIG9CR9KgchwSZ2iY5aw7eZOoJYCCASOK4aOIDPehCb+nh9DZTLU5vCcrJtUCG1OIxbWo nzWId8gq/vfcX1L9yTLH1CNJVt2cmUpS5m8BulUv21F6XLo5BHCIdJSEbGfO/M9VPJYQAYin2WEO/ UYco12lDOtx9cr5wvKIjEcAwBhlyAb1Sr3/Ga0E7iOW8z9ih/gCowigy7YlAgTpuQkDLtDP88/w3D pXlMGnneA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCug-007E3j-Q2; Fri, 19 Mar 2021 11:03:31 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCtD-007DOl-Op for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:02:01 +0000 Received: by mail-pg1-x52f.google.com with SMTP id o11so3422380pgs.4 for ; Fri, 19 Mar 2021 04:01:59 -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=2r+hb4QLBinjqUWBtvalv2ZNlSEWr0t8LgbnD3rkGXY=; b=H51BuvBk+d+VrafWjiNmYuhXP7SH4yFn00mnwg8b97GELTFmQGDRHkiyl3cFn2Du8H iWdGT8w0g9J31DJ5Cediv47FGjuMnN0brALAyV5qutKgiyTRrWt6cnr9K9P4qAvY42uS odgf7DXOOTPORiEcmIVEiNWzL3LvvJC042qtOR3WoPClXPiC05+8SR3a4hrhbJYM8U58 /FTBmCjxLdoE6ydhBNWZrIBpCJya8vha05aBc/bGwLcFXv0PBKDhRXj28uaYVv3GGi9r 90btPv0mGImHFMNNFp7ji6CM7sjqsxsmaok6UU7JjI9WyGPunAhcRIowDks2smDYvJHP vmfg== 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=2r+hb4QLBinjqUWBtvalv2ZNlSEWr0t8LgbnD3rkGXY=; b=UXk27EEoAJX8R4osd4YUP2GbFOSaLRyCtLMXLgoU7+dtS9WulDzdqz0MWIzT6VMWkK hMLG6e/NrlXOA3v6Z9yP/YgGC5MXem+HMeoJc+KiuLD5Gc6uJ5yTfmw3qY0UhS+xS1IB zCOsLehYLr2f9iwI5Irzw9bdUgCzLPg9OOvx5F0enEyoL57ujjrtP0HM2kRKICBzPdj1 5T9PiG4pj6wL6JAeyhOV7kGrKGqWkSEF55g8gUJeN5j719VRlmz2yqo9QFAfy23NQAMM +OwO+2TkUFGJQW0ZDJ2l/wl7pnVlhcUWnqMmGzPwqRxdwCdwxdLmbUS7XzGZXohSKXZs 9Iig== X-Gm-Message-State: AOAM531NWuh8yYjMWiGpV+VGMzni4SfGU93r/AukGkrFmsdclGsfs72d t9gxzKKEWhDcdimrs2bapo0= X-Google-Smtp-Source: ABdhPJy7/4zKHODKQrPCYa79oyG0kmHaS2DclyVozWj+lMVQ0xUggA++2YKGb1mbTv1owgD153DeBQ== X-Received: by 2002:a62:3384:0:b029:202:ee3:f83b with SMTP id z126-20020a6233840000b02902020ee3f83bmr8759016pfz.77.1616151718601; Fri, 19 Mar 2021 04:01:58 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:01:58 -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 , Benjamin Gaignard Subject: [PATCH v10 11/33] counter: stm32-timer-cnt: Add const qualifier for functions_list array Date: Fri, 19 Mar 2021 20:00:30 +0900 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_110159_833426_504B1DBB X-CRM114-Status: GOOD ( 12.41 ) 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 stm32_count_functions to match functions_list. Cc: Fabrice Gasnier Cc: Benjamin Gaignard Signed-off-by: William Breathitt Gray Reviewed-by: Fabrice Gasnier --- drivers/counter/stm32-timer-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c index 75bc401fdd18..0c18573a7837 100644 --- a/drivers/counter/stm32-timer-cnt.c +++ b/drivers/counter/stm32-timer-cnt.c @@ -50,7 +50,7 @@ enum stm32_count_function { STM32_COUNT_ENCODER_MODE_3, }; -static enum counter_count_function stm32_count_functions[] = { +static const enum counter_count_function stm32_count_functions[] = { [STM32_COUNT_SLAVE_MODE_DISABLED] = COUNTER_COUNT_FUNCTION_INCREASE, [STM32_COUNT_ENCODER_MODE_1] = COUNTER_COUNT_FUNCTION_QUADRATURE_X2_A, [STM32_COUNT_ENCODER_MODE_2] = COUNTER_COUNT_FUNCTION_QUADRATURE_X2_B,