Skip to content

Commit

Permalink
ASoC: twl6040: Move ignore_pmdown_time to driver struct
Browse files Browse the repository at this point in the history
It's set unconditionally.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
  • Loading branch information
Mark Brown committed Feb 9, 2012
1 parent 5124e69 commit a5d3a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,6 @@ static int twl6040_probe(struct snd_soc_codec *codec)

priv->codec = codec;
codec->control_data = dev_get_drvdata(codec->dev->parent);
codec->ignore_pmdown_time = 1;

if (pdata && pdata->hs_left_step && pdata->hs_right_step) {
priv->hs_left_step = pdata->hs_left_step;
Expand Down Expand Up @@ -1626,6 +1625,7 @@ static struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
.reg_cache_size = ARRAY_SIZE(twl6040_reg),
.reg_word_size = sizeof(u8),
.reg_cache_default = twl6040_reg,
.ignore_pmdown_time = true,

.controls = twl6040_snd_controls,
.num_controls = ARRAY_SIZE(twl6040_snd_controls),
Expand Down

0 comments on commit a5d3a21

Please sign in to comment.