From patchwork Mon Nov 5 11:58:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 150179 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2507067ljp; Mon, 5 Nov 2018 03:58:50 -0800 (PST) X-Google-Smtp-Source: AJdET5cks2APw8GJn/GhJAb2y61RmwL27UN3BeO+41hXStAkGlfd3uwx0mBJlbda3Um2/3F5Tqnk X-Received: by 2002:a1c:4b1a:: with SMTP id y26-v6mr6062552wma.82.1541419130883; Mon, 05 Nov 2018 03:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541419130; cv=none; d=google.com; s=arc-20160816; b=y9UVb2Rd4NqHRiyRnnPjJEezImhPuzUjiUuYMAzQiq7d5FCLyPwUUEALVPOZPrVENj xB0n20VjWLTUMKIL74K3OCw5BQCT6m9D1ejFiHASuvIo/faeLwoqOmnU8qF971sWfb/7 +1UqgHHKMRT7EbIfCQcQsTDl5Q8HoOgYbMb9Ur26mXDR+Q+7EhCsn4A0V/m/69cugHTB G0zrKijgYAE+VEYS6Jkvn61ztpyB/c8LmGdGOAx2+rTHqbZuA505ul/Nn2ec3snfm6ao IAgK6pq1246BPdwpwOYM38Baps9Q5Fv8LLXBsAEQMfLRWJK5y9duKwSvCZ4u/ro+kbSM 1D7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=q8yGZ816pCrBnjqJPVzsT4TjdMqQY8vF19VWElIC6ic=; b=qFRM1xzy1lZpsdnhEY8G4KTOhkhJ63BLOT1BTZlmyhV6CXSuY2QCVjLcWjYsCXuv7h v9RCWQ8wO7aqcm8FZ240mrW2kun7K6kYVJN2YnXwNqa/EPIQoWcYpLfQZTA05loXav/s 5Ggq+7LpsFRLWtlg+6HAzZucAEyCW0KGd2SicRinFrhhYxL5p5XQIqwEd9sn3IqKB5Zq Yg8MeqiS1oF2i2jXPeRFXiugVaTZDMKrC+XRjSlWf5ttDW66CmMLXyQjW93EawNe6EP3 FkpCbR3gCxmaj2sHEa4Zh0cLxKlFArvK1rFYVBE8x1aePw76gmVYcfd7uB5ZJrzzfE9N GzQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=owQht+Xi; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id n10-v6si25947168wrt.169.2018.11.05.03.58.50; Mon, 05 Nov 2018 03:58:50 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=owQht+Xi; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DCA552679B1; Mon, 5 Nov 2018 12:58:49 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id D40122679F3; Mon, 5 Nov 2018 12:58:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 7E3142678DA for ; Mon, 5 Nov 2018 12:58:45 +0100 (CET) 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 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) Cc: alsa-devel@alsa-project.org, Banajit Goswami , Liam Girdwood , Patrick Lai , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai , Mark Brown Subject: [alsa-devel] Applied "ASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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(-) -- 2.19.0.rc2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel 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,