projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c90ab
)
ASoC: SSM2602: Fix reg_cache_size
author
Lars-Peter Clausen
<
[email protected]
>
Thu, 5 May 2011 14:59:14 +0000
(16:59 +0200)
committer
Mark Brown
<
[email protected]
>
Sun, 8 May 2011 13:42:21 +0000
(14:42 +0100)
reg_cache_size is supposed to be the number of elements in the register cache,
not the size in bytes.
Signed-off-by: Lars-Peter Clausen <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/ssm2602.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ssm2602.c
b/sound/soc/codecs/ssm2602.c
index 946797dbb0c5a7332df12150cdb47aa1ed0d63f6..b04d28039c1665d42473bf79df2936938e20acfc 100644
(file)
--- a/
sound/soc/codecs/ssm2602.c
+++ b/
sound/soc/codecs/ssm2602.c
@@
-602,7
+602,7
@@
static struct snd_soc_codec_driver soc_codec_dev_ssm2602 = {
.read = ssm2602_read_reg_cache,
.write = ssm2602_write,
.set_bias_level = ssm2602_set_bias_level,
- .reg_cache_size =
sizeof
(ssm2602_reg),
+ .reg_cache_size =
ARRAY_SIZE
(ssm2602_reg),
.reg_word_size = sizeof(u16),
.reg_cache_default = ssm2602_reg,
};