Skip to contentSkip to conversation

ASoC: Allow register defaults to be larger than unsigned short

PATCH In review Mark Brown 2 participants 2 messages Aug 24, 2011 – Aug 31, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Allow register defaults to be larger than unsigned short

Devices that need this exist; obviously the newer regmap defaults mechanism will deal with this more happily.

---
 include/sound/soc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/sound/soc.h +1 -1
index 6da55a1..0fc8f15 100644
@@ -622,7 +622,7 @@ struct snd_soc_codec_driver {
 	int (*volatile_register)(struct snd_soc_codec *, unsigned int);
 	int (*readable_register)(struct snd_soc_codec *, unsigned int);
 	int (*writable_register)(struct snd_soc_codec *, unsigned int);
-	short reg_cache_size;
+	unsigned int reg_cache_size;
 	short reg_cache_step;
 	short reg_word_size;
 	const void *reg_cache_default;
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Mark Brown

Devices that need this exist; obviously the newer regmap defaults mechanism will deal with this more happily.

---
 include/sound/soc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/sound/soc.h +0 -0
index 6da55a1..0fc8f15 100644

include/sound/soc.h struct snd_soc_codec_driver { · line 628

Quoted 8 lines
include/sound/soc.h +1 -1
@@ -622,7 +622,7 @@ struct snd_soc_codec_driver {
 	int (*volatile_register)(struct snd_soc_codec *, unsigned int);
 	int (*readable_register)(struct snd_soc_codec *, unsigned int);
 	int (*writable_register)(struct snd_soc_codec *, unsigned int);
-	short reg_cache_size;
+	unsigned int reg_cache_size;
 	short reg_cache_step;
 	short reg_word_size;
 	const void *reg_cache_default;