Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2543871pxb; Tue, 9 Mar 2021 05:23:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlbbaaSbHJnBTgipmZ6ZKj+0XfNvqPbSDbkUtt3aMlzstINLc8ABURTULJUv2nlLWgVeUk X-Received: by 2002:a05:6402:142:: with SMTP id s2mr4099271edu.2.1615296198196; Tue, 09 Mar 2021 05:23:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296198; cv=none; d=google.com; s=arc-20160816; b=CWBgdNvekHufGmzt+vwrILW4o8+vX3ZLCESGiRCur/PyTxDgmQ6Q9wek2BU1iOIYyC sLR3t/vLrs6YAY0x3mlQUBeG3JoNBXj/Se/bH3ZLrGFb2pbJCgMIjgPjLmcyARySVZD2 ScVpwVXEVFcCYKxzAgHuJ3dGbaeH1+MsJZonXWbmIUdOjVt6hfxlo1efhKhEtHPAHZZ3 CIT8tSnX6hQR0R1Vd6MEguEGMmvvTHhM4WaWvugzE7I9jxwru0/wTnbdA5x1Djhiv5zn FsGIStLFCsITfnuEpmBXFYcGBF08/z0GrXJhfnc3/hddWxHNd67rCw4SkKTZGSroigYx C2wg== 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=UIAVd9muG3GyzUO3PQ0xXOFMJbQ/8NwAgbwz6em0ZRg=; b=KEH0oaoDCQ9WFu/RFfTjn98ajiVGsIxnfBH/DgMYXZVMkeE0il1nS7hE2OFgNd0BaQ SmyopFyfd8519rghN/LxXcmd7/7cCnAMRc5mYOv1k9UTvLatG96Jb+y2/wWDxLO72oJ9 lueTPVgKaan4Zzb8tJIWx2AlgvjBtUDCfcjMq2irN9883eERo+XPpndedKBealy7k42d iRvt0D4QgF5E24hBV347mgOdUMiNcj/g4Qj1foDxZRdP1Hl5ByMa5pukMmpPdVy2yO5y DXBiJW1kKPdPfHQPAKIVhwJ9b4Zw4Y1Raqf81LoWD3ubZXV3WN4tPp7IYbS/A75omncL k1ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jW4gcFVX; 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 n2si9221760ejy.130.2021.03.09.05.22.54; Tue, 09 Mar 2021 05:23:18 -0800 (PST) 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=jW4gcFVX; 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 S231415AbhCINVe (ORCPT + 99 others); Tue, 9 Mar 2021 08:21:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbhCINVE (ORCPT ); Tue, 9 Mar 2021 08:21:04 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 150D5C06174A; Tue, 9 Mar 2021 05:21:04 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id e2so1287583pld.9; Tue, 09 Mar 2021 05:21:04 -0800 (PST) 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=UIAVd9muG3GyzUO3PQ0xXOFMJbQ/8NwAgbwz6em0ZRg=; b=jW4gcFVXjW/JzLz3cPSkBjbDaBo7tO/oiG724aeK0AHoO05rKqd4AKWvx1if7eAHD+ fiQSL6f8rZ8ViPuFQkYvAHO4kVlvV0jah/mzK5yD35slTRN4LKOJg0efzq02kONJvhXm QuV4bY5t7iLV8WfhAD4MSAeL/U99u3RMbSz9gUrJKK6M4sezn4AbIAPXat7GfNIyQxmb 58pgasZgH2HmtV6jrHyhMsgl670VOZ2sI+tDluqgnCDCzFm5g+B49Kg7mDdolWgveF85 2DW5U7GJyhwBacxmVtI8e8VQCaE6nyNuK/z8pg0hxwI1D5ddWFRs50DXcYQ7W9EBegz4 nm/w== 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=UIAVd9muG3GyzUO3PQ0xXOFMJbQ/8NwAgbwz6em0ZRg=; b=Dciwk5e2L+b4lAVZ7oeUG1cn2PoKL7enhIuSWC078pfnYmqKd2Uh1r9J8E5oX/79pB HGlqgNQ5GouPu2AWSFnie3Wf8bMQIkM97N4txIdGQPKnZMyXLs4Vbtlp3x02mxIuyA1Z 58efyiZKyaLQ8dADyj2Q+Ao1fDymw5HdgWN82qhg2Uac0W1G6A/4Pos0/46Psuq9jW1B XI8VO1KMZXPk2RWvKfyBsNpeMGSRyev2SGpS8aD6QqjLqf9oXnYUrsgLYd7kHCz+SC0/ NNgrZLuPMctLPmRbXEI7laDBI2WNNbIIyA0W9r66wZ7kIqntr+pCBsJWJTu95VgMQ+FV 6cuQ== X-Gm-Message-State: AOAM5329ReVvC9LtE0bUjsjAkkFwYQqZ6ovtXQ2iOKuoHUZ+rT/wfwS0 6tMYF9uLZqNKLOSkVIXtvEw= X-Received: by 2002:a17:90a:a584:: with SMTP id b4mr4701165pjq.186.1615296063689; Tue, 09 Mar 2021 05:21:03 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:21:03 -0800 (PST) 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 Subject: [PATCH v9 10/33] counter: stm32-lptimer-cnt: Add const qualifier for functions_list array Date: Tue, 9 Mar 2021 22:19:23 +0900 Message-Id: <6325a9857d8566c31c6bd7fb3812249c99350fbd.1615293276.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.1 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_lptim_cnt_functions to match functions_list. Cc: 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 937439635d53..0f7d3f1ec1b6 100644 --- a/drivers/counter/stm32-lptimer-cnt.c +++ b/drivers/counter/stm32-lptimer-cnt.c @@ -134,7 +134,7 @@ enum stm32_lptim_cnt_function { STM32_LPTIM_ENCODER_BOTH_EDGE, }; -static enum counter_count_function stm32_lptim_cnt_functions[] = { +static const enum counter_count_function stm32_lptim_cnt_functions[] = { [STM32_LPTIM_COUNTER_INCREASE] = COUNTER_COUNT_FUNCTION_INCREASE, [STM32_LPTIM_ENCODER_BOTH_EDGE] = COUNTER_COUNT_FUNCTION_QUADRATURE_X4, }; -- 2.30.1