Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp466137imu; Mon, 5 Nov 2018 03:59:49 -0800 (PST) X-Google-Smtp-Source: AJdET5cYCDx9AMJOtOutNHiEj5nu/Gb9EPAlCcLuQNxhJooPxNf+4Wpug3B7B0Cg8qEiMljZo0Ur X-Received: by 2002:a63:7a5b:: with SMTP id j27mr17365831pgn.112.1541419189546; Mon, 05 Nov 2018 03:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541419189; cv=none; d=google.com; s=arc-20160816; b=mrlF+clQu89FbGxuYvxazKNUrx+/OYmGyHGTuNDjv1k4EKGdlM2GL5o7EASWmw8GAf Qpd1+3hrSWSohk9GV6ssM/QQDLDPWJAPuQ3aniGr/dyXDyc3YN55YklhFpP4YKvhwXiB hDm55ek5154tj1EE025/dTxWEjcLVTA2GvoLQAJ40gldGfvOiPvZRfoCYO6/U5HOozmS SwTL+bDgo8ZiL+kqDhH69Ccln0bxpALh+2iKbDiBZGgaFOO5qw9k4kW69jxYieXlcUjZ QW3+IxYe+b+BxQayAsrVV4vfSHp9qpZ1HNsOpZPsjpyaZgpFatuRMhf8YCGBcC4bh2jr 99ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=wi/p1M4beRUw0RGcbSg9OnZc6nASNScXxFhHndNUa2Q=; b=Epkr4B7KcILItGmpa/irPl5xBXSX3SBYznwWPispPO357aUULFY/vov7eSuBX7K2aY 4JwkCpDYkSi1PVMRAJavkGVblLoTgqfWPG8Ogp8uIwM5ibPGsAKGRKWWEaeMNfE9A+Nc l8tRedl2ZcG8Ecb+PpHmBcIllZBAR5txulcj0RK1E7yYZ4VASxJaUp2bqouXK6/7trMc femvncUnJdMYWyTog6wU2bl6HJLP2tayDrvIBvpbMD0jW7WRHqrHO3mw+8m/FZ+G3K8c 9C320mU3BHrJ3wTytGNBI7VAScGxdGG/qiwd23lSL4h7UzIoKdSwoL2n5kOAchxbocsd 0Eeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=owQht+Xi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si19191317pgi.580.2018.11.05.03.59.34; Mon, 05 Nov 2018 03:59:49 -0800 (PST) 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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=owQht+Xi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729375AbeKEVSQ (ORCPT + 99 others); Mon, 5 Nov 2018 16:18:16 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:39866 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726494AbeKEVSQ (ORCPT ); Mon, 5 Nov 2018 16:18:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=wi/p1M4beRUw0RGcbSg9OnZc6nASNScXxFhHndNUa2Q=; b=owQht+XidfRq 3W++Fm7YuoeKqEfTbw+nqpJfV3/cCPv95IVRmCIljSI22epMKuo6nnxGh9Vu1SxzmcYMk2S2PD1Fu iLe9UR2Lszq5f7ysBvnrsKcZkxPXMMsG58VWn7jpVGqkDHUWLUtgzRaloQ8JSBQw2XzPCMxobmcjQ dl9/s=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gJdWm-0008IY-Vt; Mon, 05 Nov 2018 11:58:45 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id ACB431124D98; Mon, 5 Nov 2018 11:58:44 +0000 (GMT) From: Mark Brown To: Julia Lawall Cc: Mark Brown , Patrick Lai , alsa-devel@alsa-project.org, Banajit Goswami , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Subject: Applied "ASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures" to the asoc tree In-Reply-To: <1540647284-26728-3-git-send-email-Julia.Lawall@lip6.fr> Message-Id: <20181105115844.ACB431124D98@debutante.sirena.org.uk> Date: Mon, 5 Nov 2018 11:58:44 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 7dfcd9d727c3e69ecb51c0bb4d54b3d46de98e87 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sat, 27 Oct 2018 15:34:43 +0200 Subject: [PATCH] ASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures 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 Signed-off-by: Mark Brown --- 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, -- 2.19.0.rc2