Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1292981pxf; Fri, 19 Mar 2021 04:03:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoFDD0yllLNhXwNABJMv4/5pL6neMM7O1XV8+NXV5y33MSXJzSs+o6+woWDJIS7JbDNgRd X-Received: by 2002:a17:906:828e:: with SMTP id h14mr3609229ejx.529.1616151794711; Fri, 19 Mar 2021 04:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151794; cv=none; d=google.com; s=arc-20160816; b=KcQ6h+4cFIpoLmTqR/roYaGnm0OtR3lKxf9HtILWD8bPbQqlBh0WmrlVIYRib9ntga vHwGgkn0I6EcXe+LxlT1tujiU5GT3Ozq73xG34wQGvfqndyVQtU9RkVkWAxwPjTtp+O4 ZoQDbl7vshC3zAG6PIhu+Zi8j3J3nlfUwtMmjP/cep7jk4PWAeSwwjASM5LIBOnfvgc/ KbrTCCqLuNX8HItVNiA6g3olnsPhjt4MVXyUx7DVbzTGjPyd7P+adR9p7IN1gjMWlQ61 UcngHeTI8Yiaqos/pnJIA18wPnUKBUXOzTilYxpWgaGF70IIi75UbMMaEVI0uVUEMvEL Mrxg== 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=XSocH1pEsSl5GXfkgGEmzp3nM7R7NfVZbOAEiTfnQJI=; b=YhcGlsiHIn0Eo/wrvDRuc13AT0bUE9SXd+ooGKFEB6ycCojKu155V5Gu83sJ1kq1Bo p/8LEIQjGFlGFlU/mq1Oz1qThilO73Ol7roxyhQtB5vzGKrmKWhkq+7X066sGa/NbD2S /7bopyQN9mtUg/MfJbe6PDNmDSvjq0TztJUqfbZ3QUYOSdNwLr8AUyvMZqfBboGxTJ/F TaLgcRHCmIYWorvhEWfVA92q3h5x4Yvkfe7RJ1QhySmpZjGRK4udfNYSwxmY/ODBUtCB 1V5DWmx56QO37JyIEynjNKU2Q2vCkqKNjLF6Us+TH28NbpOuZkaeeNUzlC3Lj94FBvd0 xqqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kjOcLKbC; 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 e26si3907503edr.396.2021.03.19.04.02.52; Fri, 19 Mar 2021 04:03:14 -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=kjOcLKbC; 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 S230019AbhCSLB5 (ORCPT + 99 others); Fri, 19 Mar 2021 07:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbhCSLBj (ORCPT ); Fri, 19 Mar 2021 07:01:39 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32DC8C06174A; Fri, 19 Mar 2021 04:01:39 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id r17so3427647pgi.0; Fri, 19 Mar 2021 04:01:39 -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=XSocH1pEsSl5GXfkgGEmzp3nM7R7NfVZbOAEiTfnQJI=; b=kjOcLKbCFtzL3WRZ+TMUVvMnzsHKXNVNuCHl+oo/fV0dipngNeeNES1u/UHkJEUIml JyNwebt5WfgbhZmvTperffY9h84hMNYEP06UtCLJ9T1v0RpU1hRDzD+XI1A/BYGnt9Lc MfCI6WX5r71fnHUV4PPxjLoproqN6KLXMJn6aZ9Q1kAY7Ss74bngKQboFwr0VTX/GCYa ej+x9hIjxQpoIgyS+vVJ0zi9bVzHFRIVfnblEGgNGTHXc1k0T3UuFMdWkidJr06aYdjP blwfMp7eW9R6K6ZNgCiM2bjzxp+/YJg4JOvwt35Wd2S0MMCUewYFiHtnzhfBvPuM+iHQ ghqw== 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=XSocH1pEsSl5GXfkgGEmzp3nM7R7NfVZbOAEiTfnQJI=; b=C0/7TEO9BgVEJa5Jr2/cYwPQBFbtY4fHR4LcemmC5Ow32FI1vnrW72rtkPT7BYS0Rf lSTbfv4xdqYB1qug5tA7ylvkKL2S/dNqR7mLhTrNU0hfyvMINNIDNY8UAvlm8rpyVuI3 TXleXsTk03BXLV0kkKKyOLV74eFAHyeGmvdIla4Y8UU93YlmAfB7oeFe3g1ePs7PwTjo C3LIowH+RVGKsXE9rfbPPcbYH0R6l6fdl0ZNCglhuibPC0wRWLfrEJBGFH/5eqbUjjiW O1xRdyydZ69GFGnv6JZJZmrCA1jthDYnI/WAcXJLoWtb2H04g0mLT4Foo6m+81Pw1dSN KKtA== X-Gm-Message-State: AOAM530KK2/R2kuQqneYIrJh4f2VONpSmQkrKo73ioYVDUxtJ/OcSLwZ jTuChbxyfv0HOva7DVoIfS8= X-Received: by 2002:a63:1d26:: with SMTP id d38mr11288574pgd.385.1616151698789; Fri, 19 Mar 2021 04:01:38 -0700 (PDT) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id i22sm4879042pjz.56.2021.03.19.04.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:01:38 -0700 (PDT) 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 v10 07/33] counter: 104-quad-8: Add const qualifier for functions_list array Date: Fri, 19 Mar 2021 20:00:26 +0900 Message-Id: X-Mailer: git-send-email 2.30.2 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_count_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 51fba8cf9c2a..ae89ad7a91c6 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_count_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.2