From patchwork Tue Aug 15 15:10:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9902101 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 04DD360230 for ; Tue, 15 Aug 2017 15:36:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA44728897 for ; Tue, 15 Aug 2017 15:36:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD3B82889A; Tue, 15 Aug 2017 15:36:56 +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_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham 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 7F72F28897 for ; Tue, 15 Aug 2017 15:36:56 +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=3twtbR3ZQCWqSce7EbJIjwDI0e5dfawHfqCUaotpRr0=; b=eDL4LnomOrzPm/XHOuNiZeN9i8 vXTiphA9sWJ0pHz/Ei1gyzKSfp2sbF1ntaeHjdjbgmGqOuPt3Dxm5zLOjSpZadL2BHDFi6Mf1Ctqd peCot4IjRMRpBvvb9+LqY1AmXaRi4CeNI/7Wn4bRNFDJs9HCVujAdHg7tdiXJEpogMTXl8iQW5Wi9 8GQVE1NSxSswVAYxefnSNPBU0wt83RegqWTi4adWSRvfVYn+mKvWRQxnOxTZowSdJu5Jhd995l/Lg 0r2BbHTZOhd08NOAxVqnxncc61gg2pMxgzFf+zljICaOqX4HPXSF7qv18g1/+jlobEYibt3Nl/365 yHua4ORA==; 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 1dhdtk-0006jE-CT; Tue, 15 Aug 2017 15:36:52 +0000 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhdtK-0006LU-11; Tue, 15 Aug 2017 15:36:29 +0000 X-IronPort-AV: E=Sophos;i="5.41,378,1498514400"; d="scan'208";a="234482055" Received: from palace.lip6.fr (HELO localhost.localdomain) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 15 Aug 2017 17:35:52 +0200 From: Julia Lawall To: Liam Girdwood Subject: [PATCH 2/5] ASoC: rockchip: constify snd_soc_dai_ops structures Date: Tue, 15 Aug 2017 17:10:09 +0200 Message-Id: <1502809812-13891-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502809812-13891-1-git-send-email-Julia.Lawall@lip6.fr> References: <1502809812-13891-1-git-send-email-Julia.Lawall@lip6.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170815_083626_603293_48B546EB X-CRM114-Status: UNSURE ( 8.96 ) 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: alsa-devel@alsa-project.org, Heiko Stuebner , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Takashi Iwai , Jaroslav Kysela , linux-rockchip@lists.infradead.org, Mark Brown , linux-arm-kernel@lists.infradead.org, bhumirks@gmail.com 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 These snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, which is const. Thus, the snd_soc_dai_ops structures can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- sound/soc/rockchip/rockchip_pdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index c5ddeed..400e29e 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -249,7 +249,7 @@ static int rockchip_pdm_dai_probe(struct snd_soc_dai *dai) return 0; } -static struct snd_soc_dai_ops rockchip_pdm_dai_ops = { +static const struct snd_soc_dai_ops rockchip_pdm_dai_ops = { .set_fmt = rockchip_pdm_set_fmt, .trigger = rockchip_pdm_trigger, .hw_params = rockchip_pdm_hw_params,