Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751731AbdHNTQv (ORCPT ); Mon, 14 Aug 2017 15:16:51 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38821 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbdHNTQt (ORCPT ); Mon, 14 Aug 2017 15:16:49 -0400 Date: Mon, 14 Aug 2017 12:16:50 -0700 From: Nicolin Chen To: Bhumika Goyal Cc: julia.lawall@lip6.fr, brian.austin@cirrus.com, Paul.Handrigan@cirrus.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, bardliao@realtek.com, chiou@realtek.com, timur@tabi.org, Xiubo.Lee@gmail.com, fabio.estevam@nxp.com, yang.jie@linux.intel.com, peter.ujfalusi@ti.com, jarkko.nikula@bitmer.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, plai@codeaurora.org, bgoswami@codeaurora.org, krzk@kernel.org, sbkim73@samsung.com, s.nawrocki@samsung.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const Message-ID: <20170814191649.GA23972@Asurada-Nvidia> References: <1502710730-18912-1-git-send-email-bhumirks@gmail.com> <1502710730-18912-4-git-send-email-bhumirks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1502710730-18912-4-git-send-email-bhumirks@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 45 On Mon, Aug 14, 2017 at 05:08:42PM +0530, Bhumika Goyal wrote: > Make these const as they are only passed as the 2nd argument to the function > snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Acked-by: Nicolin Chen Thanks > --- > sound/soc/fsl/imx-pcm-fiq.c | 2 +- > sound/soc/fsl/mpc5200_dma.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c > index 92410f7..3fcc7b5 100644 > --- a/sound/soc/fsl/imx-pcm-fiq.c > +++ b/sound/soc/fsl/imx-pcm-fiq.c > @@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm) > imx_pcm_free(pcm); > } > > -static struct snd_soc_platform_driver imx_soc_platform_fiq = { > +static const struct snd_soc_platform_driver imx_soc_platform_fiq = { > .ops = &imx_pcm_ops, > .pcm_new = imx_pcm_fiq_new, > .pcm_free = imx_pcm_fiq_free, > diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c > index 1f7e70b..cdd848c 100644 > --- a/sound/soc/fsl/mpc5200_dma.c > +++ b/sound/soc/fsl/mpc5200_dma.c > @@ -356,7 +356,7 @@ static void psc_dma_free(struct snd_pcm *pcm) > } > } > > -static struct snd_soc_platform_driver mpc5200_audio_dma_platform = { > +static const struct snd_soc_platform_driver mpc5200_audio_dma_platform = { > .ops = &psc_dma_ops, > .pcm_new = &psc_dma_new, > .pcm_free = &psc_dma_free, > -- > 1.9.1 >