From patchwork Wed Aug 16 16:59:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9904205 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 530A2600CA for ; Wed, 16 Aug 2017 17:01:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 414BF28A4C for ; Wed, 16 Aug 2017 17:01:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35DF728A57; Wed, 16 Aug 2017 17:01:59 +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 9855128A4C for ; Wed, 16 Aug 2017 17:01:58 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E45B82675E4; Wed, 16 Aug 2017 19:01:28 +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 14C332675E1; Wed, 16 Aug 2017 19:01:28 +0200 (CEST) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id 9AEE32675BC for ; Wed, 16 Aug 2017 19:00:54 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id c65so1826748pfl.0 for ; Wed, 16 Aug 2017 10:00:54 -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=v8PITN5Wq5dvIN0NQ18yrrxyCLesWA0MkAKeSmtxexw=; b=AjKRULEDVJq/X8ih+457HdOm7O8mrOTEb1Wf4JboegbxZ/X4aZQDZY29R3Tw9BxM3i pp8qp38GSSo5IOUp7RJmmHRrJFgHwtncMby9OnfXNOEnFjrm1RBUVOlxbBOzo1LMyCzE ChstG0izrknWz8my6sjLKnhDE3qA+dZS8RWJsj7eL61PJ4hCmHxri9P6nrCew1sOQxsy Y5SB/sZR3WFTQ2/3VcB5lRVE6maagrtuEg/czRV8weIdBNU0e8+HUUyUFdTgyAS567wi ofKHFTT7uoYjEZadvOIODFamLUmLOQ/vzZsmf/WxfaxM/NeCnBNwGAt15Zen8+cxtzto 0CAA== 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=v8PITN5Wq5dvIN0NQ18yrrxyCLesWA0MkAKeSmtxexw=; b=XD2QV8UaU3eHBYBPZV0NPxq7K6L0R6GVEWvECl6NKJQZ3puz6XuNtgOcjymbjrxNsc xjMwsutlak0Ay72Q51U/NOIN79Cvl9nk05UVCh6JjjVBL15Dpmylld9DsuPWxwgOX1AV UfYaXw9/u2ygUpODLCkpnDb2mct0E/r13zBgapiw+FDUgTMabLXJZUc2s8GY9sazpKAQ fHfJ0rf7oOt0ZrJtAMjm2jsJ94MpHG1iiAgt/A1WPy2SJSfysXiJuB4Zj3FYVcntTave 1WnWQ68LQ2G3GW5+ywuONbAFgJdBvmd5LfHOcuhkN5Z342C9tIDSn0ayEJVRHTVZJfgv 4B0A== X-Gm-Message-State: AHYfb5gFY5mPxK8Kjg0BMK0L2dag8p1eJdRe39uOXLEfVCWEcEKrkSd7 pZGkOUhy90sBow== X-Received: by 10.84.238.194 with SMTP id l2mr1253546pln.300.1502902853163; Wed, 16 Aug 2017 10:00:53 -0700 (PDT) Received: from gmail.com ([117.196.112.99]) by smtp.gmail.com with ESMTPSA id r87sm3247936pfb.112.2017.08.16.10.00.46 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Aug 2017 10:00:52 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 16 Aug 2017 22:30:43 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, heiko@sntech.de, krzk@kernel.org, sbkim73@samsung.com, s.nawrocki@samsung.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Date: Wed, 16 Aug 2017 22:29:30 +0530 Message-Id: <1502902770-3758-8-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502902770-3758-1-git-send-email-bhumirks@gmail.com> References: <1502902770-3758-1-git-send-email-bhumirks@gmail.com> Cc: Bhumika Goyal Subject: [alsa-devel] [PATCH 7/7] ASoC: sh: make snd_soc_ops 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 this const as it is only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/sh/migor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c index 672bcd4..ecb057f 100644 --- a/sound/soc/sh/migor.c +++ b/sound/soc/sh/migor.c @@ -98,7 +98,7 @@ static int migor_hw_free(struct snd_pcm_substream *substream) return 0; } -static struct snd_soc_ops migor_dai_ops = { +static const struct snd_soc_ops migor_dai_ops = { .hw_params = migor_hw_params, .hw_free = migor_hw_free, };