From mboxrd@z Thu Jan 1 00:00:00 1970 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 3B60EC48BCD for ; Wed, 9 Jun 2021 01:37:06 +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 02BBF61208 for ; Wed, 9 Jun 2021 01:37:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 02BBF61208 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=VsKQF03yNCssKETWStbOu8Saq35E0DF9Vbba9BYpyTg=; b=AAgPQZ0selreZ9 es4vVQ8umnpmVoy5SP0URjIiHHHr+fUzTEuFPssXBTXJzhNKWjk0CXazPDqyPbzFyeHf3xWsefEuQ vf3YO2wANy6IkFIxWbbx7JSfwVlcfL+R4YIzTwkXp5XMy3mPfB88VrYcbvczeO9mBbmnKcMYHHjnp C5JbNsU2AXM422Ibga0wD7UXcF0Ms8HmbK9PrFAX92dkSs0JtXrrPEbzYWjXoYa3lTSmgdbPW4PHU CPH359pq8E9j6triH/qiZDW5uLxk51xJiomf6c2bPulXDonr4oSwwBY2CDWrqMLqZsfVvg0wa+ENI 9KOuWfizwR56NaeNkpkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn56-00B8k8-95; Wed, 09 Jun 2021 01:32:32 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqn4z-00B8iQ-Lt for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 01:32:26 +0000 Received: by mail-pl1-x62d.google.com with SMTP id e1so11670528pld.13 for ; Tue, 08 Jun 2021 18:32:25 -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=14DXo/gQwzalmPUmXYTocs4CME9s7GOS9p5R5YtgXZk=; b=TujjSmROvBrFm01zCy+diwD2kEaIeC/luEfVKI6a+7CAs3QqhClnQIiOCfvlDfovfI kguTKJXsGYYi6vfHmsLBFjANn84GA8qvOFXnlW5iDkJFT/ZvgKfc4RblfH+cHI8amlWn JvGJtraGSuUIispgYtbnJb0K+zp7ZpvSIe4QU+S51QARJnhXBMxXGg/gRgjM97Y7HbVl lXaoDnaRigz5WtWoWni7hJjWzWAZ+p+RmlE/IXLvT2arvaxJAilPo9aEYeEGETuFfy1x qJMxwClxz5zXmr2LnVIUdoLutEghVw6HGNk4ZAiAq/MtSIorcOmfMyzHxih/EdRdMdZn 7Zkg== 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=14DXo/gQwzalmPUmXYTocs4CME9s7GOS9p5R5YtgXZk=; b=CKgvRNtBnUC04zDf7uN4NAJYKLM6QZc1j3xrqQqgHZKMdpbmfA2ak7J5x+64ZUlZpq XT5UUxhB7aBKytsKdYveNCz8ytWmVVduX2jM68L9GqbkcFmfLnjLc3Y5HUWgn59h+GLI vJ06DIZGBzQ4bI7cNmqsPs/p9bml/lKWh50uOROX9phdVCY9YVq+laXiWjgXRkAG6KoP cL2scn955xWCdxuvP3ltVkj6HiPY+809yZ4cAE4rXQ9RsJwlapspOuaN6z/wwcY6Niyi z+jdSprvLYr+DqRLcZhp5/pmcYYUHppSqcLBmQuHTzMZoNmdmH0GkM4mgdPE/gMVy+Yh nzvw== X-Gm-Message-State: AOAM5307WdLMeMikJKVhflf5AbYlRIDUOQu6gZ1uSyUF2MuJOxbbAjkX rcXDFIwLhn100G63AS+4zX8= X-Google-Smtp-Source: ABdhPJzdTdPJRUr3bOq9BJfkgAU6+P4ZrboFuZvPrV9jwLOHXPdzTe0Wc1iBMzp5BFUXBHO5+zC0CQ== X-Received: by 2002:a17:902:8a98:b029:f9:36dc:37cd with SMTP id p24-20020a1709028a98b02900f936dc37cdmr2904637plo.68.1623202344988; Tue, 08 Jun 2021 18:32:24 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:32:24 -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 07/33] counter: 104-quad-8: Add const qualifier for functions_list array Date: Wed, 9 Jun 2021 10:31:10 +0900 Message-Id: <6847da7553208e7f2554e6c7688e2021f7e19716.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_183225_752500_D8065D5E X-CRM114-Status: GOOD ( 12.37 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 quad8_count_functions_list to match functions_list. Acked-by: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c index 51fba8cf9c2a..ae89ad7a91c6 100644 --- a/drivers/counter/104-quad-8.c +++ b/drivers/counter/104-quad-8.c @@ -193,7 +193,7 @@ enum quad8_count_function { QUAD8_COUNT_FUNCTION_QUADRATURE_X4 }; -static enum counter_count_function quad8_count_functions_list[] = { +static const enum counter_count_function quad8_count_functions_list[] = { [QUAD8_COUNT_FUNCTION_PULSE_DIRECTION] = COUNTER_COUNT_FUNCTION_PULSE_DIRECTION, [QUAD8_COUNT_FUNCTION_QUADRATURE_X1] = COUNTER_COUNT_FUNCTION_QUADRATURE_X1_A, [QUAD8_COUNT_FUNCTION_QUADRATURE_X2] = COUNTER_COUNT_FUNCTION_QUADRATURE_X2_A, -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel