asoc: davinci_voicecodec: use mfd_data instead of driver_data
authorAndres Salomon <dilinger@queued.net>
Mon, 28 Feb 2011 16:24:03 +0000 (17:24 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:56 +0000 (10:41 +0100)
Use mfd_data for passing information from mfd drivers to soc
clients.  The mfd_cell's driver_data field is being phased out.

Clients that were using driver_data now access .mfd_data
via mfd_get_data().

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/davinci_voicecodec.c
sound/soc/codecs/cq93vc.c
sound/soc/davinci/davinci-vcif.c

index fdd8a1b8bc67dc972fd8d215eab00361e46f728d..414783b048490b7a03a021781c79acd29d32367c 100644 (file)
@@ -119,12 +119,12 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
        /* Voice codec interface client */
        cell = &davinci_vc->cells[DAVINCI_VC_VCIF_CELL];
        cell->name = "davinci-vcif";
-       cell->driver_data = davinci_vc;
+       cell->mfd_data = davinci_vc;
 
        /* Voice codec CQ93VC client */
        cell = &davinci_vc->cells[DAVINCI_VC_CQ93VC_CELL];
        cell->name = "cq93vc-codec";
-       cell->driver_data = davinci_vc;
+       cell->mfd_data = davinci_vc;
 
        ret = mfd_add_devices(&pdev->dev, pdev->id, davinci_vc->cells,
                              DAVINCI_VC_CELLS, NULL, 0);
index 347a567b01e16e6a8a3eb370c6d8cba5ac1af914..b8066ef10bb0ae65dcf3b49582fe89329e17f09c 100644 (file)
@@ -153,7 +153,8 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
 
 static int cq93vc_probe(struct snd_soc_codec *codec)
 {
-       struct davinci_vc *davinci_vc = snd_soc_codec_get_drvdata(codec);
+       struct davinci_vc *davinci_vc =
+                       mfd_get_data(to_platform_device(codec->dev));
 
        davinci_vc->cq93vc.codec = codec;
        codec->control_data = davinci_vc;
index 9d2afccc3a2d645dceb1e263ef7158f4c7667934..13e05a302a92edf15aa1f464298f7ae81a2e7579 100644 (file)
@@ -205,7 +205,7 @@ static struct snd_soc_dai_driver davinci_vcif_dai = {
 
 static int davinci_vcif_probe(struct platform_device *pdev)
 {
-       struct davinci_vc *davinci_vc = platform_get_drvdata(pdev);
+       struct davinci_vc *davinci_vc = mfd_get_data(pdev);
        struct davinci_vcif_dev *davinci_vcif_dev;
        int ret;