From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.2 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_SANE_1 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 10E6AC433B4 for ; Thu, 15 Apr 2021 15:18:58 +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 8856361131 for ; Thu, 15 Apr 2021 15:18:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8856361131 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+tnbYU8af9v+6X+wt7yaiu0gsCOJ964OC26FMPwCDEQ=; b=cEivqC0VoQfcQRRpwM9zUySyv xQY8rbx+hxgnFqmz4RV8LpQ72JmiIs0ub6MzECJozA0xuX7H9hWgcvZCOgTcvWf2HBwR19oqfUueH JwyY8lA7ihPXtnWY4sKmP0HJl3qFbo+7CsOyAf4IWiGS2OpH67aFqNwJ+ACx9KYDZWXQyg0f2UjxS Ok6QMCBk7XcGBo7RyYCmRdvJayCk39qWuKc3FSVyTTICeXdNa0PLjlw0c3trh/ywpYsOLEBwaGUwx HQ4VrjdKb48FHjpJML8B5j1N0nq7Fwti7MjzbEgxVD3rCu6TSzSjMRm0o5TWecd08sINw5nonMBaX r/AkB5kag==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX3kM-00GZZY-AI; Thu, 15 Apr 2021 15:17:34 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX3kJ-00GZYq-1e for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 15:17:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Pqvughkl2U3sNrUOp5/BQIl3EtqX5v4D36UESHq6XxI=; b=h4aJXI25WLt1Mm90+X9am8RIux CmkSGvfvuvyHVhLq3dIjGpWb7oRAeaghqcn43uJrI6DnjamTUuSnqMGvJTSJaEV56gXv4Yq3csj37 xiWH++K66pYbOD9N0PtaezBlTFeN3fjbf4f0NXHkoGuwqtfH56zsd2ugrbaLzqrEVPqxMHClG0UY6 +QYkZgITOnkNgfJPKZHmfQjT5hxoFg1BAPtGnTfMS2nA9BAi37ID8TEGY14mmoKoVUNbuyhP6Z8Nu 4SgkjtmUt0ZvGwGxAT1+ZGabKVTnpxQvfuUexPjHQr56EyIvOt3+bllQqD8lUQ6fujUdnsL7V2XYc +giwzHSA==; Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX3kG-008hOu-GV for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 15:17:29 +0000 Received: by mail-pf1-x435.google.com with SMTP id i190so16256556pfc.12 for ; Thu, 15 Apr 2021 08:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Pqvughkl2U3sNrUOp5/BQIl3EtqX5v4D36UESHq6XxI=; b=ZLeuNCpgMvYWfWuOgwjPr7Cf8KUdN8cCNqyp8fB9UBdYrNF1jNFznBPjf9rwzf9nFR 5PHeeeIQcc5HvY+Vk6QrJ9EvQxde5PB11U2mx04I+k/YRDzBvMTxSa58wdDPLu2Xl+on JkCuglzKGBqBWJ7PWbHJT8QJOJh9P/keTBljuIhfnt4hx/yS89xYQCrD9syl0PoTnHzY Y38tgKsb27a9hMQanI5OBr+XwcC2x731Tl3bqSkmkpFaKgQ48pxsT+m+fmniv6RPh4Gs dnByGC7B4yKMbGCF8y6a7im8SmFShLkObEAdpIAkFdoJ5qITRJVq5rFXus6J9wCrztEG 6G9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Pqvughkl2U3sNrUOp5/BQIl3EtqX5v4D36UESHq6XxI=; b=Ob/PtzFIKp479n5/CXnavAen7xTc+D+4e9bk8b5fu5qXAbU+Xskzd41itJhu9b9YKf OMVvueIoQYPP1ZrGt6FSGeR+VRmLrKONYoQq3TUHU4xqPTpJOGrxNxrtAMNfHoZAV8b7 znM8q5qGEack0vKkXpQD7IKGKY6XknnGU84V6/d35aSNfsmUjezzsFkgFMhVzWPdKf5u Sy9nwnWobIwbqE1t/HbtJiQ5Y/MyUv3xbL+M+tYP2CG1/xcin7xWf0lGstoYwDUjLBdp R6vxNzaqdzgj4s7NcR9R3lHqFTkPbBlc4MNt2SuBez9KwoUWg3tJtMEnk8YZGSuMAlHm 0POw== X-Gm-Message-State: AOAM531ShikAQNzxp9EmJ5ccd19G3tmAfYM/bFfzrFKDhgL4qwSBj8eC OR0gUWACDIpI5+/od2HAS5U= X-Google-Smtp-Source: ABdhPJw9RfWCve4tuPvWcxnZszPpQBIDcBfoCjS8aUF0YN1sMeYniNrvO8KBuCLifuBM6oW3x3WSKw== X-Received: by 2002:aa7:9316:0:b029:244:7616:edc7 with SMTP id 22-20020aa793160000b02902447616edc7mr3676280pfj.19.1618499847345; Thu, 15 Apr 2021 08:17:27 -0700 (PDT) Received: from syed ([2401:4900:2eec:4193:f802:b600:e94c:55c4]) by smtp.gmail.com with ESMTPSA id k3sm2569617pfh.12.2021.04.15.08.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Apr 2021 08:17:27 -0700 (PDT) Date: Thu, 15 Apr 2021 20:47:16 +0530 From: Syed Nayyar Waris To: William Breathitt Gray Cc: jic23@kernel.org, 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, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de Subject: Re: [PATCH v10 07/33] counter: 104-quad-8: Add const qualifier for functions_list array Message-ID: <20210415151716.GE8933@syed> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_081728_566546_20A1CF9E X-CRM114-Status: GOOD ( 16.85 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 19, 2021 at 08:00:26PM +0900, William Breathitt Gray wrote: > 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 > Acked-by: Syed Nayyar Waris _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel