ASoC: twl6040: Remove leftover code from hs/hf ramp implementation
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 11 Jan 2013 16:01:03 +0000 (17:01 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Jan 2013 23:55:12 +0000 (23:55 +0000)
The code to do the ramp has been removed a long time ago. Remove the
remaining code as well since this is not needed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl6040.c

index 984911ba5807702a169933635796a16aae2cf477..9b9a6e587610540c310c39387791f588592e1a4c 100644 (file)
@@ -69,10 +69,6 @@ struct twl6040_data {
        int hs_power_mode_locked;
        unsigned int clk_in;
        unsigned int sysclk;
-       u16 hs_left_step;
-       u16 hs_right_step;
-       u16 hf_left_step;
-       u16 hf_right_step;
        struct twl6040_jack_data hs_jack;
        struct snd_soc_codec *codec;
        struct mutex mutex;
@@ -1124,7 +1120,6 @@ static int twl6040_resume(struct snd_soc_codec *codec)
 static int twl6040_probe(struct snd_soc_codec *codec)
 {
        struct twl6040_data *priv;
-       struct twl6040_codec_data *pdata = dev_get_platdata(codec->dev);
        struct platform_device *pdev = container_of(codec->dev,
                                                   struct platform_device, dev);
        int ret = 0;
@@ -1138,22 +1133,6 @@ static int twl6040_probe(struct snd_soc_codec *codec)
        priv->codec = codec;
        codec->control_data = dev_get_drvdata(codec->dev->parent);
 
-       if (pdata && pdata->hs_left_step && pdata->hs_right_step) {
-               priv->hs_left_step = pdata->hs_left_step;
-               priv->hs_right_step = pdata->hs_right_step;
-       } else {
-               priv->hs_left_step = 1;
-               priv->hs_right_step = 1;
-       }
-
-       if (pdata && pdata->hf_left_step && pdata->hf_right_step) {
-               priv->hf_left_step = pdata->hf_left_step;
-               priv->hf_right_step = pdata->hf_right_step;
-       } else {
-               priv->hf_left_step = 1;
-               priv->hf_right_step = 1;
-       }
-
        priv->plug_irq = platform_get_irq(pdev, 0);
        if (priv->plug_irq < 0) {
                dev_err(codec->dev, "invalid irq\n");