Skip to contentSkip to conversation

ASoC: WM8776: Removed unneeded struct member

PATCH Applied Dimitris Papastamos 3 participants 3 messages Nov 5, 2010 – Nov 6, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: WM8776: Removed unneeded struct member

The member reg_cache is not used at all and therefore it should be removed. This member was usually needed for older versions of ASoC that did not handle caching automatically and had to be done in the driver itself.

---
 sound/soc/codecs/wm8776.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8776.c +0 -1
index 04182c4..0132a27 100644
@@ -34,7 +34,6 @@
 /* codec private data */
 struct wm8776_priv {
 	enum snd_soc_control_type control_type;
-	u16 reg_cache[WM8776_CACHEREGNUM];
 	int sysclk[2];
 };
 
Signature · 1 line
1.7.3.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Dimitris Papastamos

The member reg_cache is not used at all and therefore it should be removed. This member was usually needed for older versions of ASoC that did not handle caching automatically and had to be done in the driver itself.

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk