Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4921763pxj; Wed, 9 Jun 2021 05:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFAZ4FCGCRUupMUbFZF3IwJWHppkynAaq/JJzybNwbo4F1pjBcqZKJPp6pb+oMKXFNyY4y X-Received: by 2002:a17:906:f19a:: with SMTP id gs26mr4040386ejb.551.1623241118781; Wed, 09 Jun 2021 05:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623241118; cv=none; d=google.com; s=arc-20160816; b=uqU14ktaMHxVSMJo84XSdS7LhJ8EN577911z7U2opa/DuzaWnWwz+SDZBVCvGmjk1h IuA8BjjAipjmdmwJVQ2nfAackj/1H58Xi886hgsTk9fMIG3xbEL7vFVx83pT3Wx8dx72 I5mdWBNPS8WSDdWBYiMbg83F/J1xePtEOZCe+yDXq7zZMlTTjFkBdi1b8uIxU3S7i4g1 T4Mm0e3nQnpg/afsTVSoYCUZa8IHgNx0NP9R7a0su0veMXQ37SQx9zGmdIkhRQlEnNBd fGISE6il9Nrr++gMAK/Fw4Xvr1PwqqtxCPUJGpHBww25D7O+5Sdn3pC3brjyN2FKCFfy ygrQ== 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=bitxx/XbIAxQ+3ku/Ck0eGbzGv7Jfqx1XIDiwjeLpr0=; b=Se6bsO4HV2mnCZzcpzYx5kv+2k/b3EHaWtMDB1Wx2bAvUgCrSFhhjhqjPIeHLwT0f1 h7iydiR25Jk/CtJsvDn3oqvc8CcU7wSwC5DwSttzN1ywvZHYjVitkClUTtEW4dRDS9fH FY9Mfm6iyW60sJ/z9jOvJ3gCF54lwgS0PTNC05KVHANuz0+WwrDdWUGKHpLV0nIPsPk0 iINj7rAPLSCJYzRTPSsZVycYAG7GAwUj6yJGQpZ93pw9D7zZsGhyicILGMdZlKUs2PTv t/tPlvfLtaOtVwQ73QfogvhJ44GEys+Ws0Cu8aw71oTsvQYSV6nAbgJ1GbmGvC3ly83r ajSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cm4lgvn1; 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 i14si2303017edc.516.2021.06.09.05.18.15; Wed, 09 Jun 2021 05:18:38 -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=Cm4lgvn1; 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 S235672AbhFIBfK (ORCPT + 99 others); Tue, 8 Jun 2021 21:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235685AbhFIBfF (ORCPT ); Tue, 8 Jun 2021 21:35:05 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E46C061574; Tue, 8 Jun 2021 18:33:11 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 22-20020a17090a0c16b0290164a5354ad0so436688pjs.2; Tue, 08 Jun 2021 18:33:11 -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=bitxx/XbIAxQ+3ku/Ck0eGbzGv7Jfqx1XIDiwjeLpr0=; b=Cm4lgvn1K3wLjgrx+rRm23T6dRACnIdASni2uM4/i5kkJxieL1zML733wmI+3AC6H0 mlZT2pBdnl/2B5kx5GQN6PjeYGJQ4hdKKmentCRpVjfcTjNk5RgGw38ockGOHYC+alfC Fgrgiq26fO4Ix542suEce5f6XuA2y7AhqnCfhuN81tGcI78byXX9b57XxDwHkKDaRl4H xQaNcibGY69gloVh1jT1LnJSwucrxoRlX2FamQxeCrEozECXycTQhQmqsZ77ETyBLWU8 6XYsPXMeXm20pgQCcbGk6lrBIsxkQNK9Fn3EzfSKKNiyTA7ZWzSFyL3G6fNGpDdxokGr lFfA== 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=bitxx/XbIAxQ+3ku/Ck0eGbzGv7Jfqx1XIDiwjeLpr0=; b=KvZ2eOJFCwOoPl2V4mK9ezBJhu7ciWwCjHa96vMMWGP5mDfoNUeU+qiPSPKzFCBTEE Sn/BnEUinPnhXd+RybA1II9k2ojXwQ79jVUXt1woo1xB990yi8S7i1cJ0mYSIjrIQNWy JT5W/QrIXXuiJD1Ffn8JXiSIHLeqVTKjfZq7bYt1hj1h1hMHFxxuJSQOYwium82uRGTT sOPN3xT4ITaqIhfEt8gbJzJo2oN4PtVMAdlasVeP30sgQjM3hDiIyflqsqr8QwHbnZYe mjYwVYpqYLHQaoKlFMJyYjwkLx0pRT1cUworUoYsZG60mXLjYuXr13zgoyog7N3XM9QI 3jgg== X-Gm-Message-State: AOAM530J+sdJ97vd8Dfdf23oTh0algjo/++c/b0ZQeDdRncgptxZ0ftL 9QK1KOxoUG2cJvB4EfwqANo= X-Received: by 2002:a17:90a:e541:: with SMTP id ei1mr28853250pjb.189.1623202391406; Tue, 08 Jun 2021 18:33:11 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id v14sm12659815pgl.86.2021.06.08.18.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:33:11 -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 , Fabrice Gasnier Subject: [PATCH v11 16/33] counter: stm32-lptimer-cnt: Add const qualifier for actions_list array Date: Wed, 9 Jun 2021 10:31:19 +0900 Message-Id: <785e0daa3633923ede42394f423fcf94c4469154.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_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the stm32_lptim_cnt_synapse_actions to match actions_list. Reviewed-by: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-lptimer-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c index 0f7d3f1ec1b6..c19d998df5ba 100644 --- a/drivers/counter/stm32-lptimer-cnt.c +++ b/drivers/counter/stm32-lptimer-cnt.c @@ -146,7 +146,7 @@ enum stm32_lptim_synapse_action { STM32_LPTIM_SYNAPSE_ACTION_NONE, }; -static enum counter_synapse_action stm32_lptim_cnt_synapse_actions[] = { +static const enum counter_synapse_action stm32_lptim_cnt_synapse_actions[] = { /* Index must match with stm32_lptim_cnt_polarity[] (priv->polarity) */ [STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE] = COUNTER_SYNAPSE_ACTION_RISING_EDGE, [STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE] = COUNTER_SYNAPSE_ACTION_FALLING_EDGE, -- 2.32.0