From patchwork Wed Aug 16 16:59:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9904195 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 A63CF600CA for ; Wed, 16 Aug 2017 17:01:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9109A28A67 for ; Wed, 16 Aug 2017 17:01:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 840D228A59; Wed, 16 Aug 2017 17:01:22 +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 387AE28A4C for ; Wed, 16 Aug 2017 17:01:21 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C78902675C7; Wed, 16 Aug 2017 19:01:02 +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 19BD42675BF; Wed, 16 Aug 2017 19:00:57 +0200 (CEST) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by alsa0.perex.cz (Postfix) with ESMTP id EB3F326757F for ; Wed, 16 Aug 2017 19:00:34 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id j68so1826961pfc.2 for ; Wed, 16 Aug 2017 10:00:34 -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=nyJk5qWHX8/bbeaVTQKtV8iJtSq35djplEjClFjDcKU=; b=ErKX1U1abtW4xmCOlpIs9DpQ8jaWZYMb6/K1zTvqhtkNFwFShDTBPBql6r8LLtCxKZ tgfC1643yYlhbYjMmTuR03rBvdUxXrtaL0/h/gZiztAqHOVF8R8hlpZwOcxToEgcsMld uO5ncQBNXtJveeXmvmZ+ljoBDpqTzE1ngG/+iiEBRQrz5f2vE4edym8T+peuZHhnKwQm OHmjtw+eV2lziYwBmVMnZyNDIp3jTfcFFN5wkE+8kHzBm/cP0VrV00qUGP8t4Usr9IvO wcMWl6/FPErwob5VUl0z41U2o+tVaQjA8rkqXNYoA3tQxuuRfJ7t2Q5dEVXTn3J5he5w LOIA== 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=nyJk5qWHX8/bbeaVTQKtV8iJtSq35djplEjClFjDcKU=; b=IS+JEFkA11xFeIy4wXnlMAyVB0LkWbLIt8VPIE87VbY8odKhS7ioOj0/SbcS34TutL yxKsH4jCxyO3UuCBuaqQSDh4zF05swuaNmNse1hPeSe/Q+Wmq9voFkHppGuAt56XMEAj hfA+6c6Cphgfe6XK/VP1VMrazsMarFuee6gx4w1InaqTY3ALq0P5+nHVmSPKSxz49Mak 99TSsPdwcCWCblDIigLmIMUygtxQ4G1u7DKIFkWRRCFL5v4OfFG4lBxv9FsRn4dS8Zfj opM8W2XzYgqJJmYzBu4+BtBUWoRCtpFOlA/A+FldLJi86ZqVev4C7+KyTqRxusn0+DT9 IR8w== X-Gm-Message-State: AHYfb5g/POBO+8F42lkio/S5gBc6EaJOMOYhXxqi6PNIn/2AknRVzl6P wF6Pp1xWX/SYFQ== X-Received: by 10.98.147.19 with SMTP id b19mr2291817pfe.283.1502902833063; Wed, 16 Aug 2017 10:00:33 -0700 (PDT) Received: from gmail.com ([117.196.112.99]) by smtp.gmail.com with ESMTPSA id w123sm3026645pfb.60.2017.08.16.10.00.26 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Aug 2017 10:00:32 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 16 Aug 2017 22:30:23 +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:28 +0530 Message-Id: <1502902770-3758-6-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 5/7] ASoC: rockchip: 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/rockchip/rk3288_hdmi_analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index dbc53e4..42227b0 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -147,7 +147,7 @@ static int rk_init(struct snd_soc_pcm_runtime *runtime) return 0; } -static struct snd_soc_ops rk_ops = { +static const struct snd_soc_ops rk_ops = { .hw_params = rk_hw_params, };