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=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 D4855C433DB for ; Mon, 22 Mar 2021 16:24:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A02FB6044F for ; Mon, 22 Mar 2021 16:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231429AbhCVQYH (ORCPT ); Mon, 22 Mar 2021 12:24:07 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:20664 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231383AbhCVQXz (ORCPT ); Mon, 22 Mar 2021 12:23:55 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12MGMsqe030064; Mon, 22 Mar 2021 17:22:55 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=uUcuMAhnIlMw3NLgvCvihCxNTTfEvtuXNlKTWxdYRhU=; b=6salgYkkf4nvyZ2eMRIhTRLpJFoh8yY03BfME5PZrwPIZcdiY/NHEj7hDzJMtWXCF+Vc 9t5sx6/xa87h50l2vW3cg9HYPR0BOpqNyy1EBVFjWCEuTr9SUgMDGzEzC9F+8IvvhVvK Xj2JrdnBXo1OnGn2ME3EHlZYNo+v+/TPm8aXNjMu/xRW+V5yrPAgkFu0e895RvROKi6f 5PjAYDCxwqxK2OGobPjHlSxhDuY7IkNIzmWteitoMahowm+NGFnFaeZoePWEzuQFmNzX XkzvhF9iPPLV1fC9PX9hzhD/Dwf4FYtSj8mK9uQakygr0h2yvTN4A6Qd1F5rnvYcSyzm +Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 37d72djs0u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 17:22:55 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ABCA310002A; Mon, 22 Mar 2021 17:22:51 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 96BEE22A2A2; Mon, 22 Mar 2021 17:22:51 +0100 (CET) Received: from [10.211.8.180] (10.75.127.49) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Mar 2021 17:22:50 +0100 Subject: Re: [Linux-stm32] [PATCH v10 11/33] counter: stm32-timer-cnt: Add const qualifier for functions_list array To: William Breathitt Gray , CC: Benjamin Gaignard , , , , , , , , , , , , , , , References: From: Fabrice Gasnier Message-ID: Date: Mon, 22 Mar 2021 17:22:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-22_08:2021-03-22,2021-03-22 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On 3/19/21 12:00 PM, 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 > stm32_count_functions to match functions_list. > > Cc: Fabrice Gasnier > Cc: Benjamin Gaignard > Signed-off-by: William Breathitt Gray > --- > drivers/counter/stm32-timer-cnt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi William, You can add my: Reviewed-by: Fabrice Gasnier Thanks, Fabrice > > diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c > index 75bc401fdd18..0c18573a7837 100644 > --- a/drivers/counter/stm32-timer-cnt.c > +++ b/drivers/counter/stm32-timer-cnt.c > @@ -50,7 +50,7 @@ enum stm32_count_function { > STM32_COUNT_ENCODER_MODE_3, > }; > > -static enum counter_count_function stm32_count_functions[] = { > +static const enum counter_count_function stm32_count_functions[] = { > [STM32_COUNT_SLAVE_MODE_DISABLED] = COUNTER_COUNT_FUNCTION_INCREASE, > [STM32_COUNT_ENCODER_MODE_1] = COUNTER_COUNT_FUNCTION_QUADRATURE_X2_A, > [STM32_COUNT_ENCODER_MODE_2] = COUNTER_COUNT_FUNCTION_QUADRATURE_X2_B, >