From patchwork Mon Aug 14 11:38:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9907741 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3390360385 for ; Fri, 18 Aug 2017 07:35:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 257A428C62 for ; Fri, 18 Aug 2017 07:35:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19E1C28C5B; Fri, 18 Aug 2017 07:35:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EB6528C5B for ; Fri, 18 Aug 2017 07:35:36 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5AB95267217; Fri, 18 Aug 2017 09:32:29 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 04D26267361; Mon, 14 Aug 2017 13:40:34 +0200 (CEST) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id D0F6A26735C for ; Mon, 14 Aug 2017 13:40:32 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id u185so10277459pgb.0 for ; Mon, 14 Aug 2017 04:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I3CTb6xi4qBxzPA8NCkQRj4SXMf4Nf/mWgrPef8hbEU=; b=jZMgqIgqf6A/5lr3wQt4TE7lmxiVu4Z8/GOuTXQMDKCBATAwHkxHhpTnpdt0oWTKAl b161lATN2Hw82psitDcE2R6wrvAeJYSstsrVHDKHsPuxiDGei04BQPJ/T5jLh79NxKsN HJUH6j7WrPdh5OCPNyHR/hTYVnOfmHWI42R12nlk+b0EFH7ys/MCgU7izmWtL2nvcWAc uX+WNWCru5qWV1FGxTDyFxJ42Yoc11jeSOaQi8L7BP4KpAc1XtyfDxZVMDr75V56plbH Hp8G9mYHJ85OCnsuvtEQOp8YimndMMSIf5Gr5Aa70mTLumSqWOhA2ygxjloS86d6lZJR vQqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I3CTb6xi4qBxzPA8NCkQRj4SXMf4Nf/mWgrPef8hbEU=; b=feNOCZBdhxRemIH1vLmyrEdQaJCEe6iefnirWOq1JsfLHtsTRdC9Ttka6E7PiRB0Cq BoRe0cbVQ5tBkBzBvWBKSDaTv+uJXGAKRCuZiPiZ0jjdO+9Ca4zQzZ+urvA1Zvhqcep6 ubcEeXiMZwaUYCVUsTCNeh5IkXI5BQ9vGrJUk3zSNiK0nWnTae+MrgxpB7CZh5MpuK85 37C0VOM3HbNlXz/2Ntdl2Y94/jUSXQWnEmc9CuerLwQXDJj7jOA5a8JgpRwuTLp2im4f YjnpbynFl7acBeJxUcRcXKwYir7PfctnIXvlOKhqmA1EnlY6siVPEkUodBlyNQV5Vp6A FpBw== X-Gm-Message-State: AHYfb5hRCeWcU9GlmvwUIc5Xl8n/95U83Dhte7NVxCuWnl2ORoAkaHob EVNXGFt44hTvAg== X-Received: by 10.84.141.3 with SMTP id 3mr28607897plu.128.1502710831963; Mon, 14 Aug 2017 04:40:31 -0700 (PDT) Received: from gmail.com ([59.94.201.231]) by smtp.gmail.com with ESMTPSA id x29sm15162756pff.2.2017.08.14.04.40.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 Aug 2017 04:40:31 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 14 Aug 2017 17:10:19 +0530 From: Bhumika Goyal To: 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, nicoleotsuka@gmail.com, 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 Date: Mon, 14 Aug 2017 17:08:45 +0530 Message-Id: <1502710730-18912-7-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502710730-18912-1-git-send-email-bhumirks@gmail.com> References: <1502710730-18912-1-git-send-email-bhumirks@gmail.com> X-Mailman-Approved-At: Fri, 18 Aug 2017 09:32:15 +0200 Cc: Bhumika Goyal Subject: [alsa-devel] [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are 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: Robert Jarzmik --- sound/soc/pxa/mmp-pcm.c | 2 +- sound/soc/pxa/pxa2xx-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 5b5f1a4..38d5999 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c @@ -211,7 +211,7 @@ static int mmp_pcm_new(struct snd_soc_pcm_runtime *rtd) return ret; } -static struct snd_soc_platform_driver mmp_soc_platform = { +static const struct snd_soc_platform_driver mmp_soc_platform = { .ops = &mmp_pcm_ops, .pcm_new = mmp_pcm_new, .pcm_free = mmp_pcm_free_dma_buffers, diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index b51d7a0..636895a 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c @@ -84,7 +84,7 @@ static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd) return ret; } -static struct snd_soc_platform_driver pxa2xx_soc_platform = { +static const struct snd_soc_platform_driver pxa2xx_soc_platform = { .ops = &pxa2xx_pcm_ops, .pcm_new = pxa2xx_soc_pcm_new, .pcm_free = pxa2xx_pcm_free_dma_buffers,