From patchwork Fri Jul 17 02:54:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6812241 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 364D89F2E8 for ; Fri, 17 Jul 2015 02:55:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DC322076E for ; Fri, 17 Jul 2015 02:55:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 293C620768 for ; Fri, 17 Jul 2015 02:55:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4FCB32666E9; Fri, 17 Jul 2015 04:55:12 +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=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id EC25C260656; Fri, 17 Jul 2015 04:55:04 +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 65E0B26065C; Fri, 17 Jul 2015 04:55:03 +0200 (CEST) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by alsa0.perex.cz (Postfix) with ESMTP id 09DE8260654 for ; Fri, 17 Jul 2015 04:54:55 +0200 (CEST) Received: by pacan13 with SMTP id an13so53067130pac.1 for ; Thu, 16 Jul 2015 19:54:54 -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=SXuHeZtA/EQbv3iORY3jd/38xk2Y7IC+O53q61OZIFU=; b=HhsW/xKG5SRS1nIBqxRoEdQxWQZwH2AAD/V339Fk5lDDKRrRK7h3ZiXXbx+peAaI49 Jf+wuYZZyufizmI8A/nyVj5NXGmQDiQvDs9WUnianiybsl2Uvou72EmzMcia4Y6agp5o pNse1EwBphqfJNgAa7EaBsLTNf8ToodJICwL6jgugcqfROxEbCxhYUNnit2MhvcyB1ab y5+BOe/lPDtnzdiqNhiBbqiy5XyzCnsnYIXEio4aqOX0/0pfK+IXyvCbn3dKFrSTDoCl lRNaujywv94K6CVV4bL5SRELu/agbuUSKBEqHVTnXFkDtT34hNcbEi3LJq15lq7TQfmI qDzg== X-Gm-Message-State: ALoCoQmRRp8Pjs5GpE9EYOC4xN+KAKak1Ei0MHDmoXmFGghNTXPKtIqALtdVI7JAaRwcF2br7CF4 X-Received: by 10.68.232.35 with SMTP id tl3mr24944540pbc.58.1437101694728; Thu, 16 Jul 2015 19:54:54 -0700 (PDT) Received: from phoenix.local ([163.26.71.6]) by smtp.gmail.com with ESMTPSA id ml10sm9400235pab.47.2015.07.16.19.54.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 19:54:53 -0700 (PDT) Message-ID: <1437101689.31985.1.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Fri, 17 Jul 2015 10:54:49 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Charles Keepax , patches@opensource.wolfsonmicro.com, Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: Constify dev_pm_ops variables 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 The dev_pm_ops variables are not modified after initialization in these drivers, so make them const. Signed-off-by: Axel Lin --- sound/soc/codecs/wm2200.c | 2 +- sound/soc/codecs/wm5100.c | 2 +- sound/soc/codecs/wm8962.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index cdaa175..878d43a 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c @@ -2481,7 +2481,7 @@ static int wm2200_runtime_resume(struct device *dev) } #endif -static struct dev_pm_ops wm2200_pm = { +static const struct dev_pm_ops wm2200_pm = { SET_RUNTIME_PM_OPS(wm2200_runtime_suspend, wm2200_runtime_resume, NULL) }; diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index e5572d2..eb494d0 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -2706,7 +2706,7 @@ static int wm5100_runtime_resume(struct device *dev) } #endif -static struct dev_pm_ops wm5100_pm = { +static const struct dev_pm_ops wm5100_pm = { SET_RUNTIME_PM_OPS(wm5100_runtime_suspend, wm5100_runtime_resume, NULL) }; diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index c67e304..cbd1886 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3859,7 +3859,7 @@ static int wm8962_runtime_suspend(struct device *dev) } #endif -static struct dev_pm_ops wm8962_pm = { +static const struct dev_pm_ops wm8962_pm = { SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL) };