Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753756AbdHOKuC (ORCPT ); Tue, 15 Aug 2017 06:50:02 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:27408 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753703AbdHOKt7 (ORCPT ); Tue, 15 Aug 2017 06:49:59 -0400 Subject: Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const To: Bhumika Goyal , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <1502710730-18912-1-git-send-email-bhumirks@gmail.com> <1502710730-18912-6-git-send-email-bhumirks@gmail.com> From: Peter Ujfalusi Message-ID: <9084e936-c239-0c37-7a54-0d4c9d3bbae6@ti.com> Date: Tue, 15 Aug 2017 13:47:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1502710730-18912-6-git-send-email-bhumirks@gmail.com> Content-Type: text/plain; charset="utf-8" X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v7FAo6QC022840 Content-Length: 1051 Lines: 34  Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-08-14 14:38, Bhumika Goyal wrote: > Make this const as it is only passed as the 2nd argument to the > function devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Acked-by: Peter Ujfalusi > --- > sound/soc/omap/omap-pcm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c > index 94e9ff7..1283473 100644 > --- a/sound/soc/omap/omap-pcm.c > +++ b/sound/soc/omap/omap-pcm.c > @@ -243,7 +243,7 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd) > return ret; > } > > -static struct snd_soc_platform_driver omap_soc_platform = { > +static const struct snd_soc_platform_driver omap_soc_platform = { > .ops = &omap_pcm_ops, > .pcm_new = omap_pcm_new, > .pcm_free = omap_pcm_free_dma_buffers, > - Péter