Skip to content

Commit

Permalink
ASoC: max98090: Remove unused control_data field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Mar 14, 2014
1 parent 2907cbc commit e585ca3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion sound/soc/codecs/max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c,

max98090->devtype = id->driver_data;
i2c_set_clientdata(i2c, max98090);
max98090->control_data = i2c;
max98090->pdata = i2c->dev.platform_data;
max98090->irq = i2c->irq;

Expand Down
1 change: 0 additions & 1 deletion sound/soc/codecs/max98090.h
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,6 @@ struct max98090_priv {
struct regmap *regmap;
struct snd_soc_codec *codec;
enum max98090_type devtype;
void *control_data;
struct max98090_pdata *pdata;
unsigned int sysclk;
unsigned int bclk;
Expand Down

0 comments on commit e585ca3

Please sign in to comment.