Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1341723imd; Sat, 27 Oct 2018 07:11:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5d+KZzKD4z5uCAhnknyI9xHno1bOkBGydWEwl4ZOroxKF6XUIBN60Upz0pYkHKujOqD4HDk X-Received: by 2002:a65:50c3:: with SMTP id s3-v6mr7118643pgp.355.1540649518258; Sat, 27 Oct 2018 07:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540649518; cv=none; d=google.com; s=arc-20160816; b=sIP+qss+Enuxv4PGEteRCtPn+60L2oaCIsD/plnJJrpWqtr+MCocddBs7DDCIEVbIj JdrTDLxxiq0xP6DmoKg7qB62QO2YRF7RbhIFamz3W7Z8BKBfp/5jsYBQ/RtKMJ+wPR5F eZaiePaZ2Gmi/T7gMI7XTeV5PoGvlmj+Dx9I0OkijY4eSgTC9WSUI1VKdBbRxNMrxyau NuYil3bE5gJz5rtQgRsviLEXb9YQMNUfGlccQCQjA5l+dgN/or2ZFgrt6Qg2ze1Dms6M zCzX8Ul5C6AG9C7/suAa0rF6llFJSVTCaT78EmFtYlYrIjznbQ/kR6owM9KGKQMI5UlW mb9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=0ZrYbpMoJb+dYaFgrCPbL+NBvPKpTF9Jg7SPKGJy/Tg=; b=08UGv2Ds2fkT6R+I8mJPATaMnwmuofvuUeDrf1S9RhZdVCmL8NlKrp+m+uHzSyxF+c +EDvSHsHQMzENAW4WH54SEKOCNdCvt+60FMz9t4j61wv9PtoPINSOmKdornuH2HwJ7Ck 9/DioOMo7tcXLhZpqBUSWXPFfLWrVENdNmNprI6o2/6flBCkFIO8ejvJgk2y0ljTC4In bQgfhzlKeLgAumN6EWUuQVuwQRL9ROLNcBxBSiq5kCWEoD8123Svy0Rzl0Zx6/zsgely 3M0OBKSP40VpUmS0uv9GLM7mDIgDFxyJNWMNu1o9I/+gZMfDrlj/fhT2njcUN6y2JiWq GDug== 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 89-v6si14982540plc.383.2018.10.27.07.11.41; Sat, 27 Oct 2018 07:11:58 -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 S1728753AbeJ0WvM (ORCPT + 99 others); Sat, 27 Oct 2018 18:51:12 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:32034 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728168AbeJ0WvM (ORCPT ); Sat, 27 Oct 2018 18:51:12 -0400 X-IronPort-AV: E=Sophos;i="5.54,432,1534802400"; d="scan'208";a="283512249" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 16:10:03 +0200 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 2/3] ASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures Date: Sat, 27 Oct 2018 15:34:43 +0200 Message-Id: <1540647284-26728-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540647284-26728-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540647284-26728-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structures const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- sound/soc/qcom/qdsp6/q6afe-dai.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 60ff4a2d3577..a07a4538d5cf 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -561,13 +561,13 @@ static const struct snd_soc_dapm_route q6afe_dapm_routes[] = { {"QUAT_MI2S_TX", NULL, "Quaternary MI2S Capture"}, }; -static struct snd_soc_dai_ops q6hdmi_ops = { +static const struct snd_soc_dai_ops q6hdmi_ops = { .prepare = q6afe_dai_prepare, .hw_params = q6hdmi_hw_params, .shutdown = q6afe_dai_shutdown, }; -static struct snd_soc_dai_ops q6i2s_ops = { +static const struct snd_soc_dai_ops q6i2s_ops = { .prepare = q6afe_dai_prepare, .hw_params = q6i2s_hw_params, .set_fmt = q6i2s_set_fmt, @@ -575,14 +575,14 @@ static struct snd_soc_dai_ops q6i2s_ops = { .set_sysclk = q6afe_mi2s_set_sysclk, }; -static struct snd_soc_dai_ops q6slim_ops = { +static const struct snd_soc_dai_ops q6slim_ops = { .prepare = q6afe_dai_prepare, .hw_params = q6slim_hw_params, .shutdown = q6afe_dai_shutdown, .set_channel_map = q6slim_set_channel_map, }; -static struct snd_soc_dai_ops q6tdm_ops = { +static const struct snd_soc_dai_ops q6tdm_ops = { .prepare = q6afe_dai_prepare, .shutdown = q6afe_dai_shutdown, .set_sysclk = q6afe_mi2s_set_sysclk,