diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-24 10:59:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-24 10:59:01 -0400 |
commit | a6a1d6485e77f28c11cdf943a3ed2a3fd83ac727 (patch) | |
tree | d9b1948c2c07509f9fab16cd1444de15457c08f4 /sound/soc | |
parent | 1b506cfb6ae63f352643d6e208c85c1351547036 (diff) | |
parent | 316b6cc081b112546842d44ded21512bd8454a85 (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (90 commits)
mfd: Push byte swaps out of wm8994 bulk read path
mfd: Rename ab8500 gpadc header
mfd: Constify WM8994 write path
mfd: Push byte swap out of WM8994 bulk I/O
mfd: Avoid copying data in WM8994 I2C write
mfd: Remove copy from WM831x I2C write function
mfd: Staticise WM8994 PM ops
regulator: Add a subdriver for TI TPS6105x regulator portions v2
mfd: Add a core driver for TI TPS61050/TPS61052 chips v2
gpio: Add Tunnel Creek support to sch_gpio
mfd: Add Tunnel Creek support to lpc_sch
pci_ids: Add Intel Tunnel Creek LPC Bridge device ID.
regulator: MAX8997/8966 support
mfd: Add WM8994 bulk register write operation
mfd: Append additional read write on 88pm860x
mfd: Adopt mfd_data in 88pm860x input driver
mfd: Adopt mfd_data in 88pm860x regulator
mfd: Adopt mfd_data in 88pm860x led
mfd: Adopt mfd_data in 88pm860x backlight
mfd: Fix MAX8997 Kconfig entry typos
...
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/cq93vc.c | 3 | ||||
-rw-r--r-- | sound/soc/codecs/twl4030.c | 6 | ||||
-rw-r--r-- | sound/soc/codecs/wl1273.c | 3 | ||||
-rw-r--r-- | sound/soc/codecs/wm8400.c | 3 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-vcif.c | 2 |
5 files changed, 11 insertions, 6 deletions
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index 347a567b01e1..b8066ef10bb0 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c | |||
@@ -153,7 +153,8 @@ static int cq93vc_resume(struct snd_soc_codec *codec) | |||
153 | 153 | ||
154 | static int cq93vc_probe(struct snd_soc_codec *codec) | 154 | static int cq93vc_probe(struct snd_soc_codec *codec) |
155 | { | 155 | { |
156 | struct davinci_vc *davinci_vc = snd_soc_codec_get_drvdata(codec); | 156 | struct davinci_vc *davinci_vc = |
157 | mfd_get_data(to_platform_device(codec->dev)); | ||
157 | 158 | ||
158 | davinci_vc->cq93vc.codec = codec; | 159 | davinci_vc->cq93vc.codec = codec; |
159 | codec->control_data = davinci_vc; | 160 | codec->control_data = davinci_vc; |
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index e4d464b937d6..8512800f6326 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
27 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
29 | #include <linux/mfd/core.h> | ||
29 | #include <linux/i2c/twl.h> | 30 | #include <linux/i2c/twl.h> |
30 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
31 | #include <sound/core.h> | 32 | #include <sound/core.h> |
@@ -732,7 +733,8 @@ static int aif_event(struct snd_soc_dapm_widget *w, | |||
732 | 733 | ||
733 | static void headset_ramp(struct snd_soc_codec *codec, int ramp) | 734 | static void headset_ramp(struct snd_soc_codec *codec, int ramp) |
734 | { | 735 | { |
735 | struct twl4030_codec_audio_data *pdata = codec->dev->platform_data; | 736 | struct twl4030_codec_audio_data *pdata = |
737 | mfd_get_data(to_platform_device(codec->dev)); | ||
736 | unsigned char hs_gain, hs_pop; | 738 | unsigned char hs_gain, hs_pop; |
737 | struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec); | 739 | struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec); |
738 | /* Base values for ramp delay calculation: 2^19 - 2^26 */ | 740 | /* Base values for ramp delay calculation: 2^19 - 2^26 */ |
@@ -2297,7 +2299,7 @@ static struct snd_soc_codec_driver soc_codec_dev_twl4030 = { | |||
2297 | 2299 | ||
2298 | static int __devinit twl4030_codec_probe(struct platform_device *pdev) | 2300 | static int __devinit twl4030_codec_probe(struct platform_device *pdev) |
2299 | { | 2301 | { |
2300 | struct twl4030_codec_audio_data *pdata = pdev->dev.platform_data; | 2302 | struct twl4030_codec_audio_data *pdata = mfd_get_data(pdev); |
2301 | 2303 | ||
2302 | if (!pdata) { | 2304 | if (!pdata) { |
2303 | dev_err(&pdev->dev, "platform_data is missing\n"); | 2305 | dev_err(&pdev->dev, "platform_data is missing\n"); |
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 861b28f543d2..1ad0d5aecece 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
@@ -436,7 +436,8 @@ EXPORT_SYMBOL_GPL(wl1273_get_format); | |||
436 | 436 | ||
437 | static int wl1273_probe(struct snd_soc_codec *codec) | 437 | static int wl1273_probe(struct snd_soc_codec *codec) |
438 | { | 438 | { |
439 | struct wl1273_core **core = codec->dev->platform_data; | 439 | struct wl1273_core **core = |
440 | mfd_get_data(to_platform_device(codec->dev)); | ||
440 | struct wl1273_priv *wl1273; | 441 | struct wl1273_priv *wl1273; |
441 | int r; | 442 | int r; |
442 | 443 | ||
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 3c3bc079167e..736b785e3756 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/regulator/consumer.h> | 22 | #include <linux/regulator/consumer.h> |
23 | #include <linux/mfd/wm8400-audio.h> | 23 | #include <linux/mfd/wm8400-audio.h> |
24 | #include <linux/mfd/wm8400-private.h> | 24 | #include <linux/mfd/wm8400-private.h> |
25 | #include <linux/mfd/core.h> | ||
25 | #include <sound/core.h> | 26 | #include <sound/core.h> |
26 | #include <sound/pcm.h> | 27 | #include <sound/pcm.h> |
27 | #include <sound/pcm_params.h> | 28 | #include <sound/pcm_params.h> |
@@ -1377,7 +1378,7 @@ static void wm8400_probe_deferred(struct work_struct *work) | |||
1377 | 1378 | ||
1378 | static int wm8400_codec_probe(struct snd_soc_codec *codec) | 1379 | static int wm8400_codec_probe(struct snd_soc_codec *codec) |
1379 | { | 1380 | { |
1380 | struct wm8400 *wm8400 = dev_get_platdata(codec->dev); | 1381 | struct wm8400 *wm8400 = mfd_get_data(to_platform_device(codec->dev)); |
1381 | struct wm8400_priv *priv; | 1382 | struct wm8400_priv *priv; |
1382 | int ret; | 1383 | int ret; |
1383 | u16 reg; | 1384 | u16 reg; |
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c index 9d2afccc3a2d..13e05a302a92 100644 --- a/sound/soc/davinci/davinci-vcif.c +++ b/sound/soc/davinci/davinci-vcif.c | |||
@@ -205,7 +205,7 @@ static struct snd_soc_dai_driver davinci_vcif_dai = { | |||
205 | 205 | ||
206 | static int davinci_vcif_probe(struct platform_device *pdev) | 206 | static int davinci_vcif_probe(struct platform_device *pdev) |
207 | { | 207 | { |
208 | struct davinci_vc *davinci_vc = platform_get_drvdata(pdev); | 208 | struct davinci_vc *davinci_vc = mfd_get_data(pdev); |
209 | struct davinci_vcif_dev *davinci_vcif_dev; | 209 | struct davinci_vcif_dev *davinci_vcif_dev; |
210 | int ret; | 210 | int ret; |
211 | 211 | ||