ASoC: Allow register defaults to be larger than unsigned short
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.
Signed-off-by Mark Brown <[email protected]>
--- include/sound/soc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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;
Signature · 1 line
1.7.5.4
Quoted 13 lines · Mark Brown
Devices that need this exist; obviously the newer regmap defaults mechanism will deal with this more happily.
Signed-off-by Mark Brown <[email protected]>--- include/sound/soc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/sound/soc.h +0
-0
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;
Acked-by Liam Girdwood <[email protected]>