Message ID | 6325a9857d8566c31c6bd7fb3812249c99350fbd.1615293276.git.vilhelm.gray@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=yaRN=IH=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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,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 D76F8C433E0 for <linux-arm-kernel@archiver.kernel.org>; Tue, 9 Mar 2021 13:27:09 +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 7805E64D8F for <linux-arm-kernel@archiver.kernel.org>; Tue, 9 Mar 2021 13:27:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7805E64D8F 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=/WPVjhtLm+lkxgf5qt1BA/STe+kMZQXL23AFQD8/QqI=; b=c71UtI2QWjwU0A6HjC9h22wZW rSXeehlZlZptnxjLS+ExgUMUG3sp3YF0ZFmrj0OpN+1OfWndMHbs2vIfTJJAYWVziYDhoj4+KwO4E TuslZS6KpHJUOKCXF0Tx+A8s5T19DACfB9aSwiAIOKkKzRXHj/jyPAT63f7PYT7SRMVT85u9zfjp7 eX812SGYmoM0k3IyKauzzO0+YTK497L/RIRktGdHGkalVDyAFaW74vLWF1og5ROrVLuFvWL8f1a9M fhgKMhoUCvWLRXH/2xaGg8EIfoFnNx+/EXDM80LXPSscfUCC3sL62nCPeyUi26h4iIYtkYpVhjNmD GxnZApDqA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJcMP-004c37-O2; Tue, 09 Mar 2021 13:25:19 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJcIL-004aHQ-AJ for linux-arm-kernel@lists.infradead.org; Tue, 09 Mar 2021 13:21:09 +0000 Received: by mail-pl1-x62c.google.com with SMTP id n17so2996385plc.7 for <linux-arm-kernel@lists.infradead.org>; 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=PvBRrgDbyrcQoFjpAjv3KjWIXkrA0RO1R0M5cPQXzlTyK03oZ4etKl+HR5vEU6efVW 85XMEAuHF/QfZPs4ky4I2OJIWmWMAVwbJJxhhVuGAHL6Xoo+ZTdS27XdZqxuAeC2MX04 Ir4okmrV/ZuZcv159iMmbiGrJU7ePr3sRYM9HBHKHZaTkR+vlwkrRrcsbqnlXsVCtB1g DaJfXvILqL+0hlPL5P9tNQasj7sXurXQDteZNCqFpzpHfQowNfWOSTJ3cWcOPwAqqQv9 kI3vYt+T7DAgo8X+nJMrGnREHXM4GaCGy6Yl7Kauhz4lWcgRWwA07BUA/KkKHxViMokf dc5g== X-Gm-Message-State: AOAM533zv4YmCfhL6Ep8bhq0fm1vxpTR83KZediaDfcpTMu0V+EBHgSg xJMJcrVtKRSxHBNCjkfCrrVWFuS5cegQRg== X-Google-Smtp-Source: ABdhPJxVXkw9bGWsBjUq7o7hg1B/IvBD9mBlo1XlR95LPUGnVPTey/VSv8pOU7IfUWfxSbINqhwdFw== 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 <vilhelm.gray@gmail.com> 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 <vilhelm.gray@gmail.com> 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: <cover.1615293276.git.vilhelm.gray@gmail.com> References: <cover.1615293276.git.vilhelm.gray@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210309_132105_548111_24736C10 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Introduce the Counter character device interface
|
expand
|
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, };
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 <fabrice.gasnier@st.com> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> --- drivers/counter/stm32-lptimer-cnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)