diff mbox

[v2,2/4] ASoC: fsi: mark several data structures as const

Message ID 1427813339-23817-3-git-send-email-u.kleine-koenig@pengutronix.de (mailing list archive)
State Accepted
Commit 9a42ab04aae96d47cd86e065b5127e472fd9eab9
Headers show

Commit Message

Uwe Kleine-König March 31, 2015, 2:48 p.m. UTC
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(-)

Comments

Mark Brown April 1, 2015, 8:31 a.m. UTC | #1
On Tue, Mar 31, 2015 at 04:48:57PM +0200, Uwe Kleine-König wrote:
> A driver's platform_device_id and device data should and can be const.

Applied, thanks.
diff mbox

Patch

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 },
 	{},