Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300063
b: refs/heads/master
c: 30facd4
h: refs/heads/master
i:
  300061: 02aaf6a
  300059: 3130c8e
  300055: 8bcb8cb
  300047: e4da3d2
  300031: aa42854
v: v3
  • Loading branch information
Mark Brown committed Apr 30, 2012
1 parent 2cce439 commit 95e3de9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e875c1e3e758447ba81ca450d89434b3b0496d37
refs/heads/master: 30facd4d51d630b6cba386badd7f42456962089b
11 changes: 6 additions & 5 deletions trunk/sound/soc/codecs/wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct wm8350_jack_data {
};

struct wm8350_data {
struct snd_soc_codec codec;
struct wm8350 *wm8350;
struct wm8350_output out1;
struct wm8350_output out2;
struct wm8350_jack_data hpl;
Expand Down Expand Up @@ -1309,7 +1309,7 @@ static void wm8350_hp_work(struct wm8350_data *priv,
struct wm8350_jack_data *jack,
u16 mask)
{
struct wm8350 *wm8350 = priv->codec.control_data;
struct wm8350 *wm8350 = priv->wm8350;
u16 reg;
int report;

Expand Down Expand Up @@ -1342,7 +1342,7 @@ static void wm8350_hpr_work(struct work_struct *work)
static irqreturn_t wm8350_hp_jack_handler(int irq, void *data)
{
struct wm8350_data *priv = data;
struct wm8350 *wm8350 = priv->codec.control_data;
struct wm8350 *wm8350 = priv->wm8350;
struct wm8350_jack_data *jack = NULL;

switch (irq - wm8350->irq_base) {
Expand Down Expand Up @@ -1427,7 +1427,7 @@ EXPORT_SYMBOL_GPL(wm8350_hp_jack_detect);
static irqreturn_t wm8350_mic_handler(int irq, void *data)
{
struct wm8350_data *priv = data;
struct wm8350 *wm8350 = priv->codec.control_data;
struct wm8350 *wm8350 = priv->wm8350;
u16 reg;
int report = 0;

Expand Down Expand Up @@ -1536,6 +1536,8 @@ static int wm8350_codec_probe(struct snd_soc_codec *codec)
return -ENOMEM;
snd_soc_codec_set_drvdata(codec, priv);

priv->wm8350 = wm8350;

for (i = 0; i < ARRAY_SIZE(supply_names); i++)
priv->supplies[i].supply = supply_names[i];

Expand All @@ -1544,7 +1546,6 @@ static int wm8350_codec_probe(struct snd_soc_codec *codec)
if (ret != 0)
return ret;

wm8350->codec.codec = codec;
codec->control_data = wm8350;

/* Put the codec into reset if it wasn't already */
Expand Down

0 comments on commit 95e3de9

Please sign in to comment.