Commit e585ca34 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 2907cbcc
...@@ -2350,7 +2350,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c, ...@@ -2350,7 +2350,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c,
max98090->devtype = id->driver_data; max98090->devtype = id->driver_data;
i2c_set_clientdata(i2c, max98090); i2c_set_clientdata(i2c, max98090);
max98090->control_data = i2c;
max98090->pdata = i2c->dev.platform_data; max98090->pdata = i2c->dev.platform_data;
max98090->irq = i2c->irq; max98090->irq = i2c->irq;
......
...@@ -1523,7 +1523,6 @@ struct max98090_priv { ...@@ -1523,7 +1523,6 @@ struct max98090_priv {
struct regmap *regmap; struct regmap *regmap;
struct snd_soc_codec *codec; struct snd_soc_codec *codec;
enum max98090_type devtype; enum max98090_type devtype;
void *control_data;
struct max98090_pdata *pdata; struct max98090_pdata *pdata;
unsigned int sysclk; unsigned int sysclk;
unsigned int bclk; unsigned int bclk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment