diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-12-28 15:37:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-28 18:37:21 -0500 |
commit | 839d271c509b6ce5c1da8a8e89fad73a1af0ddda (patch) | |
tree | 0e319023c344782d30c4d1a806a0a94b90e25be0 /sound/soc/codecs/tlv320aic26.c | |
parent | 6dc47e97a064c4fc0e324fc4accc90415c1509b2 (diff) |
ASoC: codecs: Remove unused reg_cache fields from device structs
The multi-component patch(commit f0fba2ad1) moved the allocation of the
register cache from the driver to the ASoC core. Most drivers where adjusted to
this, but there are quite a few drivers left which now have an unused reg_cache field in
their private device struct.
This patch removes these unused fields.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/tlv320aic26.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic26.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 68f0ae47f608..e2a7608d3944 100644 --- a/sound/soc/codecs/tlv320aic26.c +++ b/sound/soc/codecs/tlv320aic26.c | |||
@@ -30,7 +30,6 @@ MODULE_LICENSE("GPL"); | |||
30 | struct aic26 { | 30 | struct aic26 { |
31 | struct spi_device *spi; | 31 | struct spi_device *spi; |
32 | struct snd_soc_codec codec; | 32 | struct snd_soc_codec codec; |
33 | u16 reg_cache[AIC26_NUM_REGS]; /* shadow registers */ | ||
34 | int master; | 33 | int master; |
35 | int datfm; | 34 | int datfm; |
36 | int mclk; | 35 | int mclk; |
@@ -354,7 +353,6 @@ static DEVICE_ATTR(keyclick, 0644, aic26_keyclick_show, aic26_keyclick_set); | |||
354 | */ | 353 | */ |
355 | static int aic26_probe(struct snd_soc_codec *codec) | 354 | static int aic26_probe(struct snd_soc_codec *codec) |
356 | { | 355 | { |
357 | struct aic26 *aic26 = snd_soc_codec_get_drvdata(codec); | ||
358 | int ret, err, i, reg; | 356 | int ret, err, i, reg; |
359 | 357 | ||
360 | dev_info(codec->dev, "Probing AIC26 SoC CODEC driver\n"); | 358 | dev_info(codec->dev, "Probing AIC26 SoC CODEC driver\n"); |
@@ -372,7 +370,7 @@ static int aic26_probe(struct snd_soc_codec *codec) | |||
372 | aic26_reg_write(codec, AIC26_REG_AUDIO_CTRL3, reg); | 370 | aic26_reg_write(codec, AIC26_REG_AUDIO_CTRL3, reg); |
373 | 371 | ||
374 | /* Fill register cache */ | 372 | /* Fill register cache */ |
375 | for (i = 0; i < ARRAY_SIZE(aic26->reg_cache); i++) | 373 | for (i = 0; i < codec->driver->reg_cache_size; i++) |
376 | aic26_reg_read(codec, i); | 374 | aic26_reg_read(codec, i); |
377 | 375 | ||
378 | /* Register the sysfs files for debugging */ | 376 | /* Register the sysfs files for debugging */ |