All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	alsa-devel@alsa-project.org
Cc: Oder Chiou <oder_chiou@realtek.com>,
	Bard Liao <bardliao@realtek.com>,
	Fabian Frederick <fabf@skynet.be>,
	kernel@pengutronix.de
Subject: [PATCH v2 2/4] ASoC: fsi: mark several data structures as const
Date: Tue, 31 Mar 2015 16:48:57 +0200	[thread overview]
Message-ID: <1427813339-23817-3-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <1427813339-23817-1-git-send-email-u.kleine-koenig@pengutronix.de>

A driver's platform_device_id and device data should and can be const.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 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 },
 	{},
-- 
2.1.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2015-03-31 14:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-31 14:48 [PATCH v2 0/4] ASoC: constification and random cleanups Uwe Kleine-König
2015-03-31 14:48 ` [PATCH v2 1/4] ASoC: fsi: reorder code to make a forward declaration superfluous Uwe Kleine-König
2015-04-01  8:31   ` Mark Brown
2015-03-31 14:48 ` Uwe Kleine-König [this message]
2015-04-01  8:31   ` [PATCH v2 2/4] ASoC: fsi: mark several data structures as const Mark Brown
2015-03-31 14:48 ` [PATCH v2 3/4] ASoC: fsi: fix license specification Uwe Kleine-König
2015-03-31 14:48 ` [PATCH v2 4/4] ASoC: mark of_device_id and device data as constant Uwe Kleine-König
2015-04-01  9:12   ` Uwe Kleine-König
2015-03-31 16:19 ` [PATCH v2 0/4] ASoC: constification and random cleanups Mark Brown
2015-03-31 17:43   ` Uwe Kleine-König
2015-03-31 18:10     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427813339-23817-3-git-send-email-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=bardliao@realtek.com \
    --cc=broonie@kernel.org \
    --cc=fabf@skynet.be \
    --cc=kernel@pengutronix.de \
    --cc=lgirdwood@gmail.com \
    --cc=oder_chiou@realtek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.