Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5140019pxj; Wed, 9 Jun 2021 10:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUq4sjsOGaXctfutaQJ5UwUZumQQEUKG+WV+8enXPFCbHneW6CwS/Z9WjZkaYsgVdRpKXw X-Received: by 2002:a17:907:c0d:: with SMTP id ga13mr804574ejc.325.1623258143440; Wed, 09 Jun 2021 10:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258143; cv=none; d=google.com; s=arc-20160816; b=E/oGEHy6lueWn5CUoPZ7UOtLDQOKBHpRelRmWRrQ78EA8qOEISv5x58DpGG2U0LiDR o6OTcO2bRNGMdCjPUyvLM24Gl5Ur4FQcwfa9AeqnEWfkyN1PmSP+JAE+D3UQZrUfJ29v BrSVo9IYykyXcFhzb9Q6QjdCUiYp4bTi1Mv6HILRMEdadBLwXWjcOQ9wGBgW1GyJ3yeP 0a4KZ8wLZQFaImqSDkZPfB39p/W/dixDG9N4PQOp/HRfo0HVnkk+1dO8LH2Mf4BXyCSL CHOmn3LC6wDs/5oyEhQ4o16N4xpld3y0BUCZMfmA0lBbDcUNH9J1tbPSwrpXJFagbCSL x/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lJOl39aSDR3XMZTfLJ4I1sJIXKWA+Mc9CKAY9Y1edUw=; b=dTQdKqAqsGFZxbsq2GcCp6woEGLrUcgGjruajWKvFYBOAYxJtxnhLuzb5p4bO5lPgg 8AE9mH7bVWa/x0lhbBjazFAHVwMV4AvEvwNRQ5oc3KYjB77jxnGfsHXipv3brW3S6h0o JsW94W/rgpYXaIYJ3uSX5kOdhDad7inzP6glorXPNo4k/hD+sXABObaqvFmdD9uAduZ9 eXQMhIWVdSE2vsFFsXuzVuZyJIu3c25Sd+nLUpuIC6bMi3fl6eeoCHNsAjypfIPJEM1W CZxIWoeQ6fF+eh0vhY8UrVdXYe4wURiWBB50g6jm0/w18Vr5JzanJyaj4T0Tm+pX+EGA gqMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N4BtFt7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si215893edw.369.2021.06.09.10.01.58; Wed, 09 Jun 2021 10:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N4BtFt7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235632AbhFIBey (ORCPT + 99 others); Tue, 8 Jun 2021 21:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbhFIBex (ORCPT ); Tue, 8 Jun 2021 21:34:53 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950A1C061787; Tue, 8 Jun 2021 18:32:48 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id v11so3204473ply.6; Tue, 08 Jun 2021 18:32:48 -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=lJOl39aSDR3XMZTfLJ4I1sJIXKWA+Mc9CKAY9Y1edUw=; b=N4BtFt7FKmHJOsOu7wd8wbYhg/V8Iacpd+LoaodYrH47vUearjxlWzr6UXsS90bxNN qE3x0WSNUL+PO3Ugc5kt0LAwiszsQi4E1xZbTp1ouAX82RTkCoRY+HTeEIsMkJS497hl 7pElnbcH23GzUaPNzETgdXVQN0mxQ/nQM+75UUysaQrmmZSjbhDDD+ovl7rA8iEFEfzJ jjPCPTx+2YjXJ3D+0l2uFbPOfZaB+uwcDv42iYxs6Dh6Q3Jl3rPwEo1d+ecP8a/iEfPf BPdyAzAO71tfgOth5dCS+vdb3G0KYAuxMdnydZ+1/L2qxUYV+nhhdvNW70NHVr371wZc CDiQ== 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=lJOl39aSDR3XMZTfLJ4I1sJIXKWA+Mc9CKAY9Y1edUw=; b=knaeYZNi9yYJUFC2I1TiszWq990rI8y8709ETwzQ1dYrhvyuXY2dqCqCl4jh2zub0W 1lw5s7E1uSkePi0NWLhwR6HHjWhWPTUXUrKyt0KH1cAnRvT5aSae+2lY6tSrIoc8m9FL uYWZu+vJImSGyGDMoTeNr9+sCB4mKtoxnfkgF78eFDw3owQQnrRQH4pOtfJi7ggnHSsy RAhu3pfIMTQNrgX+XAM5PYzvpPS/FVUTEGbVdmd1OsFUq+FqjsKxg4rWVzJIN+PKOzr1 C86+WP2WWIczj2wQlEaqljOBKFhMHm8xmmd7UlH8rviU+Vo4glFWmM+mYzklQqREaR/g onbA== X-Gm-Message-State: AOAM531oeargfLylSEud4+TEInTUZ/MR5bK2WNKdebQnC4rqkvl1YwOl M3i0eiRRmKW6+lvOtn4PA6w= X-Received: by 2002:a17:90b:8d6:: with SMTP id ds22mr29635108pjb.54.1623202365659; Tue, 08 Jun 2021 18:32:45 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:32:45 -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 , Benjamin Gaignard , Fabrice Gasnier Subject: [PATCH v11 11/33] counter: stm32-timer-cnt: Add const qualifier for functions_list array Date: Wed, 9 Jun 2021 10:31:14 +0900 Message-Id: <46a1e7096dd9280d8f241894186b3c903956a55f.1623201081.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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: Benjamin Gaignard Reviewed-by: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- 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, -- 2.32.0