From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Liam Girdwood <lrg@ti.com>, Tony Lindgren <tony@atomide.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Samuel Ortiz <sameo@linux.intel.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, linux-omap@vger.kernel.org,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
Peter Ujfalusi <peter.ujfalusi@ti.com>
Subject: [PATCH v3 10/12] MFD: twl6040: Change platform data for soc codec driver
Date: Thu, 9 Jun 2011 16:30:28 +0300 [thread overview]
Message-ID: <1307626230-29660-11-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1307626230-29660-1-git-send-email-peter.ujfalusi@ti.com>
Pass twl4030_codec_data instead of the twl4030_audio_data
for the ASoC codec driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
drivers/mfd/twl6040-core.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c
index 195613c..b6e5338 100644
--- a/drivers/mfd/twl6040-core.c
+++ b/drivers/mfd/twl6040-core.c
@@ -507,9 +507,8 @@ static int __devinit twl6040_probe(struct platform_device *pdev)
if (pdata->codec) {
cell = &twl6040->cells[children];
cell->name = "twl6040-codec";
- /* The codec expects the twl4030_audio_data as platform data */
- cell->platform_data = pdata;
- cell->pdata_size = sizeof(*pdata);
+ cell->platform_data = pdata->codec;
+ cell->pdata_size = sizeof(*pdata->codec);
children++;
}
--
1.7.5.3
next prev parent reply other threads:[~2011-06-09 13:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-09 13:30 [PATCH v3 00/12] MFD/ASoC/Input: TWL4030/TWL60X0 changes Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 01/12] OMAP: New twl-common for common TWL configuration Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 02/12] OMAP4: Move common twl6030 configuration to twl-common Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 03/12] OMAP3: Move common twl " Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 04/12] OMAP3: Move common regulator " Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 05/12] MFD: twl4030-codec: Rename internals from codec to audio Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 06/12] MFD: twl4030-codec -> twl4030-audio: Rename the driver Peter Ujfalusi
2011-06-09 19:37 ` Arnd Bergmann
2011-06-10 4:52 ` Péter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 07/12] MFD: twl4030-audio: Rename platform data Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 08/12] mfd: twl6040: Add initial support Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 09/12] ASoC: twl6040: Convert into TWL6040 MFD child Peter Ujfalusi
2011-06-09 13:30 ` Peter Ujfalusi [this message]
2011-06-09 13:30 ` [PATCH v3 11/12] input: Add initial support for TWL6040 vibrator Peter Ujfalusi
2011-06-09 13:30 ` [PATCH v3 12/12] OMAP4: SDP4430: Add twl6040 vibrator platform support Peter Ujfalusi
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=1307626230-29660-11-git-send-email-peter.ujfalusi@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@ti.com \
--cc=sameo@linux.intel.com \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®