Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2544567pxb; Tue, 9 Mar 2021 05:24:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0AcslVM0f+QRLKnrs9TNE/2MBds9COSIqDfzMw0GUe121B9JKkCbaQuquM3i1e7qgU0T1 X-Received: by 2002:a05:6402:1d95:: with SMTP id dk21mr4047049edb.280.1615296263084; Tue, 09 Mar 2021 05:24:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615296263; cv=none; d=google.com; s=arc-20160816; b=FAko8P8vhG684eQ3HSzXng5eCRoXtKGBaknHV9NABejyYp31HkvzbKaZIQehGK3FNk HYc/WT9gRAa9SwLvw4Ia0dC3dQ/VoVC6p7HyvtYOOy8Rfz4lajlBVEw5J0xmcHfa2R9n HSSixabFYjVYGcrREJAav1IsogbH1Sue/nQ7O4PaRt94vgL00MbVOhsfEjRlHAMyS1Ma 9DBl1R7nSNiK8bNWdJiioU0TrJ2Yvo4G2M6QhLK9XfM3j7Fbdn5EjC/kSJTHCa/nR+aQ Jfl2Em2BlRSdlYg+SU/trn75tksuYQN5bll7cW6e/FhX90ndl9E04zgs7ucQ3qoDz6Gv qEpQ== 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=Zj7+sm7nk2JUK10WGHF14mMymh0P+kdsvv/edNpXnVQ=; b=oCRf49DJLlacw2g6B5jyKNFBUi6HHe1bu12QrwxhPHyDBBQLB8KOosswR+MjoblQsv 2ctwr3MNfyHKo8x4w/BHBwPXSPeqBTpCWN3LEOmicple5FihumqUHgSvopzmh1zjSHk3 BI5GTEcEGibIZSE2L3cGhPD/edI/2JRoEi5tG/FD4CScwUAvqDpB7R37t6tvxqHPpGZq miCckp1SQlPjz8LIIBET06teC1MLF+ZGyC7LZlAaAE2PRsgLSnw9wkTJrSDB3VtKrbpe C6CB6wJT3Q4wgPfhpd7mM8YtV93uXRmKk3RAHUb4lIgi/xS3ei/qgfVnPDv5aXvt1oTA h/bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dr1NBz1s; 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 u25si8687411edo.148.2021.03.09.05.24.00; Tue, 09 Mar 2021 05:24:23 -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=dr1NBz1s; 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 S231272AbhCINVD (ORCPT + 99 others); Tue, 9 Mar 2021 08:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbhCINUr (ORCPT ); Tue, 9 Mar 2021 08:20:47 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66DEC06174A; Tue, 9 Mar 2021 05:20:47 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id nh23-20020a17090b3657b02900c0d5e235a8so5189533pjb.0; Tue, 09 Mar 2021 05:20:47 -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=Zj7+sm7nk2JUK10WGHF14mMymh0P+kdsvv/edNpXnVQ=; b=dr1NBz1sIQAoYrrUbrRdkjOj9yhfd+zFT5TTFhG3smfCVNmH9EJ+fW/RiBfPXdYJCz KMAE5GLHZYPIP9vCq7Uua1LiPg9IQQG+GRHW3Hx1HbzjdDfB0SxDKTWwwib7W8IyZcCm Ym6Dzq/2XIPH8v0wb4Wysob7fTtAZY1cFZ9vVNBv9rUjqW4mOKCYPoxImr1aRa1jiiiw OSrX3TDkO0w9BsbVGwVFO6pSiJ1OAhnuQZWQ+64HbUQyihAucSifjk2iQ/bWlAWzOSgQ l4noN+n6Yb9on9upQPWXzpVHI6tGqprEl8odS2YcDAikDBq2+VkhPHxWE6CD0Pxw3mbz JhDA== 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=Zj7+sm7nk2JUK10WGHF14mMymh0P+kdsvv/edNpXnVQ=; b=mtp2xSF9KaBKbwwfclI1OexbkvAM95843XSJVwTETLgGXUm8MkxL1lczt5Ki0Vta9F ZKQX2H1g+Lfm3NOlx+WyiPauC4hHaHT3GFWfsYqMrTAZ9YDidNKoHj4qL7ifR0XuPADv 6ijTfttJkH09nRNRThUxu2oF7sVih4rWX0XiA+GfexYQvKz8o5bmCeULVuuX0EFP6eFd ITGctqgb6nhaKcIWYeF/o9xESx7eMj2E3DZKXHdDiN8az4GvbglJazL847AQU/nyfXRn J8HBtFhuzvD0tGorqgB2JcFDaqVRH6Wq1CG6Hh/a4OVjKXpbYe4ud/DLzNhx8mSmD96G dVMA== X-Gm-Message-State: AOAM532J2B9jCPUgOxsM1mGX9v5DdmMg7TY6YV7I8HjsR89wRCHrpPZU E+2FkajGxFj1qGF3I5ybYesdASyNbPM4IA== X-Received: by 2002:a17:902:8ec9:b029:e6:c5e:cf18 with SMTP id x9-20020a1709028ec9b02900e60c5ecf18mr13935274plo.47.1615296047360; Tue, 09 Mar 2021 05:20:47 -0800 (PST) Received: from localhost.localdomain ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id y9sm7647421pfl.201.2021.03.09.05.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 05:20:46 -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 07/33] counter: 104-quad-8: Add const qualifier for functions_list array Date: Tue, 9 Mar 2021 22:19:20 +0900 Message-Id: <4d899b2fb1ed37f97f827af5880fdde916c5c4bf.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 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.1