Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3569668pxf; Mon, 22 Mar 2021 09:25:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWdlktE6/CJr++8Q58UkVKO8jCt8cNNJ1wqGZ6fQQlBUlhkEHYcOzvffQSYYMs/XwqE/Tp X-Received: by 2002:a17:906:d153:: with SMTP id br19mr608996ejb.360.1616430350290; Mon, 22 Mar 2021 09:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616430350; cv=none; d=google.com; s=arc-20160816; b=vCUI+g2LWPWLN4ocGh8DlgWji7cYzFchJVFDFuBnDt9yfeyz6ufyHAEV9Jhwlrqqy9 G+0VveLeWZC6J9F1MBFauTZxCdJaWDcVbeIkjj8xN2h5zpLPCjPBsMmGO9WnNgyost7L fsjU4MmpjRpWtAldos6jKkyZpjuH0FrScQpwmsE8jpct0wQNmM+0sidZy1VtJRz9lUkA 057ly7qJHZYB+8t7rLsygjS5PFPlkPQA4S6klVN80h1PDBDwTaq/N9XQrOI/3CUgZF+C LqzvND7oqx0yer+0RchkwfSHZOUlc/OuWfsU00GDwSgg8X3O9BStijefN2Qh01oE9MYY rUVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uUcuMAhnIlMw3NLgvCvihCxNTTfEvtuXNlKTWxdYRhU=; b=CK1PnuhtUO9D+ZG8A2PL5BGKJ2UUKyN12dL9IrKDvNRF3zXwkjrEuJ+rs6PnfjlaqR FpzmC8mKPXpbsPPzQMFJMJpaQM68ps5ROLB1FnED8kd/6mxBWDiKV1L8NbBycfFeLtkJ JnvtZTvgjJrJf7kGcYX+RqgfYWcxxsXSO+iW0gJ40j1gg+6iAMn44EFpUREUEbgTzT/p JC9+Ww/zZxojXK2Ks31mztK3wmaYMo2LFF3D6z9jK4OxyWc9kmB2tqqrlRFQGLWVHuoH t0gjF/ZBMn+0by+WaAep/jEpRW3hoGZte8FNobHCEK0m+CuXD0EvCHr4IoI9DJ0HENsr h4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=6salgYkk; 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=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk18si11933822edb.178.2021.03.22.09.25.27; Mon, 22 Mar 2021 09:25:50 -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=@foss.st.com header.s=selector1 header.b=6salgYkk; 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=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbhCVQYI (ORCPT + 99 others); Mon, 22 Mar 2021 12:24:08 -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-kernel@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, >