Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp177586pxj; Wed, 9 Jun 2021 20:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3DEM25OLUt72hUJpaNvZ4udAvXSlDW9LbmbYBfD7q8GJFvHIyQwYimE8Ng0cJuhHzyKaa X-Received: by 2002:a17:907:7747:: with SMTP id kx7mr2555176ejc.400.1623295626844; Wed, 09 Jun 2021 20:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623295626; cv=none; d=google.com; s=arc-20160816; b=H3CIuOdS5jMVrt7e/F9sOSlDNDiypPxz4PHoiuVhuA654iJ/NP81sHgLqaioU1F3RD jYbr+Q18KJdJrRXgca17lj4AX0qjFPO1xtJBI/hemHFtFiT/xfY6gNK6Pcdhr23f41T2 98YybWNSavYmhoD1/67ObAvsxmuHhnsMNAXzROor/5vhsE59l+VFPOsJSo5oOTH3i8Zp HzBitS5zDjcuB78ZV61WIG3yesS494CK8A99Tzzpw3iBDL8P92Ol0UoFmXs8zvM0wCA9 kK7J++f3WJA3q4PMKSMDWAywdX1tuLAtlR/+luxjyh8mGYtjFIXuNhLwLU2vsxPDxV5L sR/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qQHigQun+hn9Li0vO4hG2i70glgu27kuKsktayzUV2E=; b=TbaIkFJXvlQiSoPhatUa+7egIWp0KQRoI4xFf/fDK1O5kvFPzhT7D1AHoJmbfOH++b z0kIXAmnwI2MBgUE4ChUJoqBhrtd7eU5e4a3rzpOiRTADtIRdy3RBfFLCi/wIxMZoV/d 4tnHApeLYf8ylT7P6PEzGxVQWutcQhaJgPk9Sx7sBTCbXOuDQDDkRlPQIKanH/agPY8U RuDnAI/PzQhdBXeyXANxIP56wuPL/Mh4T8kTCwYOVAYb0f/hF+DjUOOEk94UpMRFZier 8PJaJ922ksvnQxm7pSXJq57plKBKOLLr1XPZNuFx+ladeRe88MN7CDKytSSFgNTK8K6x +qyg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si1271057eja.16.2021.06.09.20.26.43; Wed, 09 Jun 2021 20:27:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbhFJDZs (ORCPT + 99 others); Wed, 9 Jun 2021 23:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbhFJDZs (ORCPT ); Wed, 9 Jun 2021 23:25:48 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D13EFC061574 for ; Wed, 9 Jun 2021 20:23:52 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrBIK-0005oq-3y; Thu, 10 Jun 2021 05:23:48 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lrBIJ-0002a5-A4; Thu, 10 Jun 2021 05:23:47 +0200 Date: Thu, 10 Jun 2021 05:23:47 +0200 From: Oleksij Rempel To: William Breathitt Gray Cc: jic23@kernel.org, linux@rempel-privat.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] counter: interrupt-cnt: Add const qualifier for actions_list array Message-ID: <20210610032347.wb4wcwr37p7qn7j7@pengutronix.de> References: <20210610013642.149961-1-vilhelm.gray@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210610013642.149961-1-vilhelm.gray@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 05:22:36 up 189 days, 17:28, 37 users, load average: 0.01, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi William, On Thu, Jun 10, 2021 at 10:36:42AM +0900, William Breathitt Gray wrote: > The struct counter_synapse actions_list member expects a const enum > counter_synapse_action array. This patch renames > interrupt_cnt_synapse_actionss to interrupt_cnt_synapse_actions and adds > a const qualifier to match actions_list. > > Cc: Oleksij Rempel > Signed-off-by: William Breathitt Gray Reviewed-by: thank you! > --- > drivers/counter/interrupt-cnt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/counter/interrupt-cnt.c b/drivers/counter/interrupt-cnt.c > index 827d785e19b4..5df7cd13d4c7 100644 > --- a/drivers/counter/interrupt-cnt.c > +++ b/drivers/counter/interrupt-cnt.c > @@ -77,7 +77,7 @@ static const struct counter_count_ext interrupt_cnt_ext[] = { > }, > }; > > -static enum counter_synapse_action interrupt_cnt_synapse_actionss[] = { > +static const enum counter_synapse_action interrupt_cnt_synapse_actions[] = { > COUNTER_SYNAPSE_ACTION_RISING_EDGE, > }; > > @@ -194,8 +194,8 @@ static int interrupt_cnt_probe(struct platform_device *pdev) > priv->counter.signals = &priv->signals; > priv->counter.num_signals = 1; > > - priv->synapses.actions_list = interrupt_cnt_synapse_actionss; > - priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actionss); > + priv->synapses.actions_list = interrupt_cnt_synapse_actions; > + priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actions); > priv->synapses.signal = &priv->signals; > > priv->cnts.name = "Channel 0 Count"; > -- > 2.32.0 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |