From patchwork Tue Mar 31 14:48:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 6130651 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0285CBF4A6 for ; Tue, 31 Mar 2015 14:49:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15604201BB for ; Tue, 31 Mar 2015 14:49:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9C8CA2010C for ; Tue, 31 Mar 2015 14:49:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3F9DD264F28; Tue, 31 Mar 2015 16:49:26 +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, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5E870261B19; Tue, 31 Mar 2015 16:49:16 +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 36A20261B21; Tue, 31 Mar 2015 16:49:15 +0200 (CEST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by alsa0.perex.cz (Postfix) with ESMTP id 47E39261B07 for ; Tue, 31 Mar 2015 16:49:08 +0200 (CEST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YcxTV-0002Ad-F8; Tue, 31 Mar 2015 16:49:05 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.84) (envelope-from ) id 1YcxTR-0006DN-HC; Tue, 31 Mar 2015 16:49:01 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Date: Tue, 31 Mar 2015 16:48:57 +0200 Message-Id: <1427813339-23817-3-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427813339-23817-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1427813339-23817-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: alsa-devel@alsa-project.org Cc: Oder Chiou , Bard Liao , Fabian Frederick , kernel@pengutronix.de Subject: [alsa-devel] [PATCH v2 2/4] ASoC: fsi: mark several data structures as const 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 A driver's platform_device_id and device data should and can be const. Signed-off-by: Uwe Kleine-König --- sound/soc/sh/fsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index e949f0466eff..c4d703274d7a 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1882,7 +1882,7 @@ static void fsi_handler_init(struct fsi_priv *fsi, } } -static struct fsi_core fsi1_core = { +static const struct fsi_core fsi1_core = { .ver = 1, /* Interrupt */ @@ -1891,7 +1891,7 @@ static struct fsi_core fsi1_core = { .imsk = IMSK, }; -static struct fsi_core fsi2_core = { +static const struct fsi_core fsi2_core = { .ver = 2, /* Interrupt */ @@ -1909,7 +1909,7 @@ static const struct of_device_id fsi_of_match[] = { }; MODULE_DEVICE_TABLE(of, fsi_of_match); -static struct platform_device_id fsi_id_table[] = { +static const struct platform_device_id fsi_id_table[] = { { "sh_fsi", (kernel_ulong_t)&fsi1_core }, { "sh_fsi2", (kernel_ulong_t)&fsi2_core }, {},