From patchwork Wed Aug 16 16:59:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9904219 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 B326B600CA for ; Wed, 16 Aug 2017 17:04:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A07CB28A4B for ; Wed, 16 Aug 2017 17:04:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9548528A55; Wed, 16 Aug 2017 17:04:00 +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=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 55EBD28A5D for ; Wed, 16 Aug 2017 17:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KNLtzjDESk72wzBBSH7UKidnIwHt+R8w0Eq018QOrSk=; b=kmBnzywKdpONTQ4CVuk5jP2p3o 7djUmydX+M4gsUwwPkaPysxMvKQNCGKVG6mVxtmKlK9UA0bK/oLy6cfrgvex8HayCFhbfBFbSHX8y iSI7+v9hHsmN/B24OG+jbu9+kgebUd0c0/AMrB6hcQzK5nrOJfLqsX0s+MmReOt4pZiLeK9nvwGvl BlnvJRBW8sDQjIKEMq0jGWmuqqcshFhQUGy7GXcUu+lN9Raky/ubXlBxi/I8JhvOB3csF/L3UeB/v SmH5Bp/ktjNhJjRHSmGZKA9gbPgIEAV6JpSMQhctQHPaY6QtzB/tAhcofSstCDI8Wz1aQ00kaKnPA Qgsat7JA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1di1ja-0001Ob-3T; Wed, 16 Aug 2017 17:03:58 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1di1gl-0007xw-Vh; Wed, 16 Aug 2017 17:01:10 +0000 Received: by mail-pf0-x244.google.com with SMTP id t83so1826002pfj.3; Wed, 16 Aug 2017 10:00:43 -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=J5Oosw1r0I8FyGCuaBejHG6tRkTDPbb8xqyLQOVDWsc=; b=Jy4gqTYA+EBdga0pdW512owRUq1+hNsa2G8iT/Rt/H0rTkAhfQxzxs8Kr6hBICI5jN V2+vd/eVIMaCBIVS1LyegCsFGeJgjafsSGl9vtqanpE+ZR6c6J9U8ay4dSG6T1/lAmBK u26ywhXTBqrLms6ZFoSwY+cDbvBqkdxAgENEs77lXFRyoH3aOHbZt4VqmgWMbPdQPIct 90j1lCQ/J9sUHhLdlwtpracV7bAzW5ylL+XoVBY6TF3iODzzyhUsZFQnlfy/q3ueqN6O XzJj2R18GXAsMBtYZwZvnhLGuw8n6TxZy+WC2nu6qo8kIXBWEc6IC19u4lvvZQDPPrlf uDFA== 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=J5Oosw1r0I8FyGCuaBejHG6tRkTDPbb8xqyLQOVDWsc=; b=f1tPHa8uNHAQONBhiGpKSaMt8RbS/qBhup+Yq1816fon7O1ZOLSyNZCVLe4TAmeisX ClvhD1wulR+F5lk442p58nqY/yG7lYiTceUFLHg46JFRB/b3/7kyemxc9fAXdCIFqu9X YbXPHGYLGgjzHM8bwZIPnFwEOeWQwBvAjCwjNFQwB3xO0dc7zLmiOhpRFhbLvwty/Mzb hSAS+k5R+VtcI1PZyIuON9H0abZoG2pd0daCd267Vrm/edFRkh2a7dvxcwRbP1TWZLQd SQciFKM6hizOJgcpzt4iLk+CdaoS6nOZEU+P7Vgo6zsv01Jl0TRps5nBpRkSnbzI5DYA V2GA== X-Gm-Message-State: AHYfb5i1kJ0/e1GuiDV0RZbzJ9mfrQpiWjpGhWKhAEe7IheUJKCrvTaC KvE10YfjLg2Tzg== X-Received: by 10.84.137.1 with SMTP id 1mr2566795plm.75.1502902843377; Wed, 16 Aug 2017 10:00:43 -0700 (PDT) Received: from gmail.com ([117.196.112.99]) by smtp.gmail.com with ESMTPSA id x1sm2794447pgt.82.2017.08.16.10.00.36 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Aug 2017 10:00:42 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 16 Aug 2017 22:30:33 +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 Subject: [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Date: Wed, 16 Aug 2017 22:29:29 +0530 Message-Id: <1502902770-3758-7-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170816_100104_252319_25924E64 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bhumika Goyal MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal Reviewed-by: Krzysztof Kozlowski --- sound/soc/samsung/jive_wm8750.c | 2 +- sound/soc/samsung/s3c24xx_simtec.c | 2 +- sound/soc/samsung/s3c24xx_uda134x.c | 2 +- sound/soc/samsung/smdk_spdif.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/samsung/jive_wm8750.c b/sound/soc/samsung/jive_wm8750.c index 7fcb51f..529b10d 100644 --- a/sound/soc/samsung/jive_wm8750.c +++ b/sound/soc/samsung/jive_wm8750.c @@ -79,7 +79,7 @@ static int jive_hw_params(struct snd_pcm_substream *substream, return 0; } -static struct snd_soc_ops jive_ops = { +static const struct snd_soc_ops jive_ops = { .hw_params = jive_hw_params, }; diff --git a/sound/soc/samsung/s3c24xx_simtec.c b/sound/soc/samsung/s3c24xx_simtec.c index dcc008d..6de63f3 100644 --- a/sound/soc/samsung/s3c24xx_simtec.c +++ b/sound/soc/samsung/s3c24xx_simtec.c @@ -211,7 +211,7 @@ static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd) return 0; } -static struct snd_soc_ops simtec_snd_ops = { +static const struct snd_soc_ops simtec_snd_ops = { .hw_params = simtec_hw_params, }; diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 55538e3..c65c89d 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c @@ -199,7 +199,7 @@ static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream, return 0; } -static struct snd_soc_ops s3c24xx_uda134x_ops = { +static const struct snd_soc_ops s3c24xx_uda134x_ops = { .startup = s3c24xx_uda134x_startup, .shutdown = s3c24xx_uda134x_shutdown, .hw_params = s3c24xx_uda134x_hw_params, diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c index a2f2363..7fc7cc6 100644 --- a/sound/soc/samsung/smdk_spdif.c +++ b/sound/soc/samsung/smdk_spdif.c @@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream, return ret; } -static struct snd_soc_ops smdk_spdif_ops = { +static const struct snd_soc_ops smdk_spdif_ops = { .hw_params = smdk_hw_params, };