From patchwork Fri Aug 28 02:53:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7089341 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E29EA9F373 for ; Fri, 28 Aug 2015 02:53:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DCD9206D5 for ; Fri, 28 Aug 2015 02:53:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D0114206C5 for ; Fri, 28 Aug 2015 02:53:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AA166265D62; Fri, 28 Aug 2015 04:53:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 0570726047F; Fri, 28 Aug 2015 04:53:47 +0200 (CEST) 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 7BBC62604A6; Fri, 28 Aug 2015 04:53:46 +0200 (CEST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by alsa0.perex.cz (Postfix) with ESMTP id 29974260469 for ; Fri, 28 Aug 2015 04:53:39 +0200 (CEST) Received: by pacdd16 with SMTP id dd16so46060841pac.2 for ; Thu, 27 Aug 2015 19:53:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=zgV1ph+VFmD09G0yuoZfAwqLkby6Lp65g+CRU284lKg=; b=RkpPG/bG8HiOb4wm6E8H5Ehy+EsRZ1hTOgM15w8PuhW+LnVSc5feGOVhqafw/VVIAX fJNz9bRXi6n4c/hMknQBaRPCNO+vpdzzZ/bi8UQNxMJ/elHwjzCRgd0jxY5XuzgD8BL2 bh1HJMsOV3pXqDYZ0lAfG4g2KiKFMbnLoDbmGZRQYywiFwV7hm+PHL1xmodP3/RnSUce rttElhngneD4J4iaaZdKn9t/AGdeC/IQknnZvZJIIeZTmcT8xblGyciUoooPqhINLolm tbR+UmjJ7es75PfZUeyTxKxXvPn8pI4IDosgkneQWACnWr9dyXqiZfWgmAPJYF5AFfLi jktQ== X-Gm-Message-State: ALoCoQmCyday4C9SfXMoRiSB0oEntvpYSAwRAMC/lKo2eV/jkvHc8Od5EDqbQ6yOg9+gCiUqJZ9Z X-Received: by 10.68.65.99 with SMTP id w3mr11721668pbs.146.1440730418567; Thu, 27 Aug 2015 19:53:38 -0700 (PDT) Received: from phoenix ([163.29.141.79]) by smtp.gmail.com with ESMTPSA id x3sm3897574pdr.43.2015.08.27.19.53.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 19:53:37 -0700 (PDT) Message-ID: <1440730411.11149.4.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Fri, 28 Aug 2015 10:53:31 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Patrick Lai , Banajit Goswami , Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: qcom: Constify asoc_qcom_lpass_cpu_dai_ops 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP asoc_qcom_lpass_cpu_dai_ops is exported and used by multiple drivers, make it const to prevent modifying it at run time. Signed-off-by: Axel Lin --- sound/soc/qcom/lpass-cpu.c | 2 +- sound/soc/qcom/lpass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 23f3d59..97bc202 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -235,7 +235,7 @@ static int lpass_cpu_daiops_trigger(struct snd_pcm_substream *substream, return ret; } -struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = { +const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops = { .set_sysclk = lpass_cpu_daiops_set_sysclk, .startup = lpass_cpu_daiops_startup, .shutdown = lpass_cpu_daiops_shutdown, diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index d6e86c1..0b63e2e 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -93,6 +93,6 @@ int asoc_qcom_lpass_platform_register(struct platform_device *); int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev); int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev); int asoc_qcom_lpass_cpu_dai_probe(struct snd_soc_dai *dai); -extern struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops; +extern const struct snd_soc_dai_ops asoc_qcom_lpass_cpu_dai_ops; #endif /* __LPASS_H__ */