From patchwork Fri Mar 19 11:00:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 12150721 Return-Path: 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,URIBL_BLOCKED, 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 3D07FC433E0 for ; Fri, 19 Mar 2021 11:04:33 +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 B1FC964F69 for ; Fri, 19 Mar 2021 11:04:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1FC964F69 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=tHTBFgpKrkoYBnF4wFjmVJJFMfH8IWvKgoX3JrglG+A=; b=iLtyCM5RfmQpeke3braXtOKWM lhpPjQ8fDldERflpbGybnVmFjF6q2nOA7QM42kYQK9LC7GbK3AMEhu+8LFNypEs+deqLGG5cvM1+A B6al8EbKaJC6EErTN27IwHaOdM6pW6oeE3OIkbGd9he6SSrIDhBInotuuz1o/nRx0fLVEZcd/SfVe bqHPKOV/1oyBTeuRtVlXekmAS85IBfENaWz9oEFZdNPlzhsvR4IxpWCV8oBm/cklLdP+HX6MSy5ro dfJPNyep8IOhX3rnGlicA0wVbRzA4x2QcvxihuEqtXVlFgbal4dfke1H70ipCVIrXfcPKURWuH+uP m/DLa/ESA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNCte-007DY2-6s; Fri, 19 Mar 2021 11:02:26 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNCst-007DJZ-T1 for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 11:01:41 +0000 Received: by mail-pg1-x52e.google.com with SMTP id h25so3421839pgm.3 for ; 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=ebVjM3NxOLFJVfTefVu+r0lR/VdX84yZJVXlvA3ymcq20eeEyngjxkEgxZ6uZTwa2f f12QUCqEsLK45S8Rrjh33XxigFDx3lE5FvXMbL0OSFTAAXjRFqQ0FivcyTjBZS7xs3k+ HPJET3HCg2FblVfW1ZU4Q6GERB9bD1wvhZKsKutTjGcZkcbGJ/RETCpWVvbSwpGXyf8L tyfxht8QjuddGUmp99ge4bf/SvI9lxhk/iHxN5LmkccEm2rgQNJ/xuPgJGEvp/3FUjQ8 DBLjURey3fwC4RRtDlmyTH1P997lg4wXRaDKnvKp7TNGcgOM0c9M8O64nHqGiKfzIt5J sK6A== X-Gm-Message-State: AOAM530yuTsJ2RacJ1gPD5HYnQ3q8cyKgJ/kz1SNsbGWNvAzSV4alHXf 3SLd7Ms9UY0FP+0LDlLsDJE= X-Google-Smtp-Source: ABdhPJzRoI1fHcE1ZAKUXQ3BHSbmbZz4CqkRJPGAcm7nkR1fgIQrZY50i8oPgAoFDMztWakz8atzYA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_110140_024772_B8239E0B X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Acked-by: Syed Nayyar Waris --- 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,