aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-03-14 04:33:36 -0400
committerMark Brown <broonie@linaro.org>2014-03-14 15:27:29 -0400
commite585ca342dbbfe7102985d9ed4eae3f9e1d77ced (patch)
treea7f06ae9ed73abe3ad0ba6fb160231ec77ea2663 /sound
parent2907cbcc120e0c388df499fcb1be7d093ade3993 (diff)
ASoC: max98090: Remove unused control_data field
The driver assigns a value to the control_data field of the driver's state struct, but never reads it again. Which means it is unused and can be removed. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/max98090.c1
-rw-r--r--sound/soc/codecs/max98090.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index c7b9e901bdac..361862d4fa65 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2350,7 +2350,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c,
2350 2350
2351 max98090->devtype = id->driver_data; 2351 max98090->devtype = id->driver_data;
2352 i2c_set_clientdata(i2c, max98090); 2352 i2c_set_clientdata(i2c, max98090);
2353 max98090->control_data = i2c;
2354 max98090->pdata = i2c->dev.platform_data; 2353 max98090->pdata = i2c->dev.platform_data;
2355 max98090->irq = i2c->irq; 2354 max98090->irq = i2c->irq;
2356 2355
diff --git a/sound/soc/codecs/max98090.h b/sound/soc/codecs/max98090.h
index 7e103f249053..1a4e2334a7b2 100644
--- a/sound/soc/codecs/max98090.h
+++ b/sound/soc/codecs/max98090.h
@@ -1523,7 +1523,6 @@ struct max98090_priv {
1523 struct regmap *regmap; 1523 struct regmap *regmap;
1524 struct snd_soc_codec *codec; 1524 struct snd_soc_codec *codec;
1525 enum max98090_type devtype; 1525 enum max98090_type devtype;
1526 void *control_data;
1527 struct max98090_pdata *pdata; 1526 struct max98090_pdata *pdata;
1528 unsigned int sysclk; 1527 unsigned int sysclk;
1529 unsigned int bclk; 1528 unsigned int bclk;