Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2271858imd; Fri, 2 Nov 2018 08:38:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5djs6L4YkAv4M12r35BXhoWSMjqTpJTSpdfmLI011DtbpeOcEN0sE49m7j3Cwp0CDVqF4at X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr12214875pfd.185.1541173095390; Fri, 02 Nov 2018 08:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541173095; cv=none; d=google.com; s=arc-20160816; b=ypbn+3PkUVse14bd404bqMpVQCeVZP1ZrFElNPMX06rUHm1RKxJ581unMEQgXblN9v Pnzsm/QqaKb6UyD0i8A9wl7J3/vF2uhU2sWBhVM8KvNv4qGxwe6F4qSlKmsOND8aNShm vcrRcmHt5/ugQK1+f5AocHfldYcP8FlDYjVcg7AVyd51CsiMU7Wwed5W+kbMLWzmt/0q 8JOZZPrVTotknyZF/3AvuFrnwX7QMXdOtzWSgzliuxq9UcngKeSOFFMCp9EaeApS9Pan uGKC7nVP5K6TbyzyK31kI7F2Mv2ehhTYEewEb0g9ulkqRU+TQDEfT3iWbBD1VSekL+6/ BBTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=e4AbuehNFjwliH7i1g1NbFxfJqS0yF90L1JvwnGvH+0=; b=BlLxVXEoW51NjHG+Yu0JxyLKY3KYd/h496IyXclpiGslAAstRbJYGZjzc9OesqG4sy DRChiWtDztN6xSuBvNRLbZQSj/qeRxN81wrbJaoPkY9994gtINMaHa95Hp/gVrR3/mte LtYWlSI8PVDIWVi6/+tfSaFUCZJDGfMxsKSmxupvB5sSCVPOLKlxKI1mNwV8ukHSlm7X dAYXPSXnYQpxvbdaq4Jpc93rcR60hxC24T9u9KoBtdLjspRWygGgnKx01iWCGnYzu90A atGQrVdIrkBKZMcpR2fjkK+y6wXSi1Di5JQmogecBNQ37/Doa/MibnebYFsIyVfdEgdM mSRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si3277113pgy.408.2018.11.02.08.38.00; Fri, 02 Nov 2018 08:38:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbeKCAnM (ORCPT + 99 others); Fri, 2 Nov 2018 20:43:12 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:21737 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727503AbeKCAnM (ORCPT ); Fri, 2 Nov 2018 20:43:12 -0400 X-IronPort-AV: E=Sophos;i="5.54,456,1534802400"; d="scan'208";a="353921403" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 02 Nov 2018 16:35:42 +0100 From: Julia Lawall To: Patrick Lai Cc: kernel-janitors@vger.kernel.org, Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: smd845: constify snd_soc_ops structure Date: Fri, 2 Nov 2018 16:00:18 +0100 Message-Id: <1541170818-24219-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snd_soc_ops structure can be const as it is only stored in the ops field of a snd_soc_dai_link structure and this field is const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- sound/soc/qcom/sdm845.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index 9effbecc571f..8d0cdff64377 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -171,7 +171,7 @@ static void sdm845_snd_shutdown(struct snd_pcm_substream *substream) } } -static struct snd_soc_ops sdm845_be_ops = { +static const struct snd_soc_ops sdm845_be_ops = { .hw_params = sdm845_snd_hw_params, .startup = sdm845_snd_startup, .shutdown = sdm845_snd_shutdown,