aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-05-17 05:29:21 -0400
committerTakashi Iwai <tiwai@suse.de>2009-05-17 13:31:49 -0400
commit5b740ea975c4ce3da12ac21b56f9e43354ca4327 (patch)
tree54e5e096e7f18b295d6f0942bf5280ed9f52d9f0 /sound/soc/fsl
parent2bf2778e0fb38255e55ab5e10022132b0a72420e (diff)
sound: use dev_set_drvdata
Eliminate direct accesses to the driver_data field. cf 82ab13b26f15f49be45f15ccc96bfa0b81dfd015 The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ struct device *dev; expression E; type T; @@ - dev->driver_data = (T)E + dev_set_drvdata(dev, E) @@ struct device *dev; type T; @@ - (T)dev->driver_data + dev_get_drvdata(dev) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_ssi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 3711d8454d96..47afaa9747ac 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -674,7 +674,7 @@ struct snd_soc_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info)
674 ssi_private->dev = ssi_info->dev; 674 ssi_private->dev = ssi_info->dev;
675 ssi_private->asynchronous = ssi_info->asynchronous; 675 ssi_private->asynchronous = ssi_info->asynchronous;
676 676
677 ssi_private->dev->driver_data = fsl_ssi_dai; 677 dev_set_drvdata(ssi_private->dev, fsl_ssi_dai);
678 678
679 /* Initialize the the device_attribute structure */ 679 /* Initialize the the device_attribute structure */
680 dev_attr->attr.name = "ssi-stats"; 680 dev_attr->attr.name = "ssi-stats";