Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2892868pxb; Fri, 12 Feb 2021 04:18:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmZqH3x44Ep+waCFFlmd3XSJE9RpPwbr4JzHrV8vMtg741yTMVyuM3XL6Gw5t7paoMITGp X-Received: by 2002:a17:906:40f:: with SMTP id d15mr2755509eja.522.1613132286181; Fri, 12 Feb 2021 04:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613132286; cv=none; d=google.com; s=arc-20160816; b=DLV9iyofoJbqmMF5r/LbbWQ7/u34fHFAKFoILV4hSMm+BRS+f1iPqz4GhdKX54uN03 x6avLYwpYetHtRJHAYs7NR7uHoaYTXnZEfeBQtjG2AR5UxwAC4J6b9rCNM7zK9aCjqVy +uiw01pS5cSeobgikOeFX3UG2mWHYwJ7+dhyC7xiEE322FtbMzT5WjXJBurmfAdst77s ZUb/nTRBs/pBnAEdd171ue1r2MVeZHaztov31IHqGepMewHBrVghdlwVZkISas2L7U6s Fxtzsqa4NRY8dM3nbozBO3+AkQtpcgYssXbDigGeNzA+Nft6XUwV7tOzOHPH5LNVnN3j X9vQ== 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=ZF5NYOTPzb69Gy7SXzsmlFc2ufq8pLJB8ZkxKUF4FAI=; b=NzhZuQdlQcNV7JtkMLotk11zvh1A8hKQj/JS1hKDw6tLi1uRScZ5R+Nx/U3MGETymK EC7fYblGhQC8unWBtU5TLjRvh0Kvc0vmRVMXjmxCFT1smZyxjB5JltolYFlfOvo/h2s3 gAO42haIQJtVlnkaQxT+YTWIbK+zCdNabGKfuhJ/YLohV/Cb95d8AIVC/DAmxdH2Xn7i wB74+QL4qBXBHy0EmvpueLNbkR5MGhJdRczgj/cr3oeQH+bCOhpQfHy9o8vOV+0la2HG ihC87+2YOgtUux4gC0iKKHikFYFca0cYdTGn3DA3YleGD41D1bfXq9PPBkU86Op5mlbE w4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ga3mew42; 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 oz18si1715344ejb.455.2021.02.12.04.17.43; Fri, 12 Feb 2021 04:18:06 -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=Ga3mew42; 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 S231312AbhBLMPi (ORCPT + 99 others); Fri, 12 Feb 2021 07:15:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbhBLMPW (ORCPT ); Fri, 12 Feb 2021 07:15:22 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E1EC06178B; Fri, 12 Feb 2021 04:14:35 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id dr7so2268951qvb.1; Fri, 12 Feb 2021 04:14:34 -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=ZF5NYOTPzb69Gy7SXzsmlFc2ufq8pLJB8ZkxKUF4FAI=; b=Ga3mew42ijkMgzZTymuZhgziBa7GfGyxP/sUENT/oaQm4Ks/rw54Vb/MEAgxCVIAuP xpd06dY2jnPYYUE9RETNoYnHuHFp3e+0+/POzIweMNWkSW0MjoHwIWUnMVLLGZaxxTh8 cEk0G1RBGM5U/z6HNt1wy94+gmYRo7tvaMzAy2rv6WMUa1hFaiFidBMa1zxWfi9U0Ewp QQ6KaHAWRisgavcUS02nf8wCLHBQsVlJaAmM5soKtI3Bu4VERuX9slcHYfAgeH0MwiZV odm6K0SR1fDGBQEXYQrdgpuGgvUccmvBmZsvK/S+NKjyrJd60a+sj4f5rYcWmSWYQFCN tnDA== 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=ZF5NYOTPzb69Gy7SXzsmlFc2ufq8pLJB8ZkxKUF4FAI=; b=IOWdsG+NvdgjRPVX+D0BwBtqyT4/RRMjYEHIUCqF0etMfghxvnLBVgrf7GheOYua0+ A5UPoDTdbfMciw5XQbQVUsJcsezJmBEkeRLzrKPPJLw+U8sDEhMUnTr1SJWsJuvL6+cF A86ApZFyKrpTgh/DRVkQhUWgHF95Nn9/b1AUYLOpZW4rWQmNHmkqYkZC4vV6vAMdld2D U+4PpaKljQTvFWWghHQ+NB1spcCE+qgjg+vjn9Kovq58AtBEqu8PCMqE/gsZjnU1pE1y tb9Q3cgt7hJ8Oq+oKpPYhPNSPdzHD48wTIJfHBop9ZTZZa2AFtEbtQsPbWOgp/aZCuSq BIag== X-Gm-Message-State: AOAM530qiHbldIt0VpuIerDrkZdk/UC8XboU9S0jah9PQ12mfCUS4577 RNvfVA+z/N3LqF9SXYL9ltg= X-Received: by 2002:a0c:fcc4:: with SMTP id i4mr2247752qvq.57.1613132074308; Fri, 12 Feb 2021 04:14:34 -0800 (PST) Received: from localhost.localdomain ([193.27.12.132]) by smtp.gmail.com with ESMTPSA id y135sm6278534qkb.14.2021.02.12.04.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 04:14:33 -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 v8 06/22] counter: 104-quad-8: Add const qualifier for functions_list array Date: Fri, 12 Feb 2021 21:13:30 +0900 Message-Id: <74ca1dd85fde4356fe403a524b502282abf4467b.1613131238.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.30.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 quad8_functions_list to match functions_list. Cc: 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 70383b792ec6..af4e0503b074 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_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.30.0