diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-09-21 07:21:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-09-21 07:21:47 -0400 |
commit | d62ab3589462d406e98731799361f46095467882 (patch) | |
tree | eb49e66d3b1b6d6aefcbfcf1e74e28988c65c828 /sound/soc/soc-cache.c | |
parent | d0f5fa17aa63262685e43b798ca0830d89786235 (diff) |
ASoC: Convert soc-cache to use C99 style initialisers for the table
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-cache.c')
-rw-r--r-- | sound/soc/soc-cache.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index 404231ee8780..d2505e8b06c9 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c | |||
@@ -179,10 +179,20 @@ static struct { | |||
179 | unsigned int (*read)(struct snd_soc_codec *, unsigned int); | 179 | unsigned int (*read)(struct snd_soc_codec *, unsigned int); |
180 | unsigned int (*i2c_read)(struct snd_soc_codec *, unsigned int); | 180 | unsigned int (*i2c_read)(struct snd_soc_codec *, unsigned int); |
181 | } io_types[] = { | 181 | } io_types[] = { |
182 | { 7, 9, snd_soc_7_9_write, snd_soc_7_9_spi_write, snd_soc_7_9_read }, | 182 | { |
183 | { 8, 8, snd_soc_8_8_write, NULL, snd_soc_8_8_read, NULL }, | 183 | .addr_bits = 7, .data_bits = 9, |
184 | { 8, 16, snd_soc_8_16_write, NULL, snd_soc_8_16_read, | 184 | .write = snd_soc_7_9_write, .read = snd_soc_7_9_read, |
185 | snd_soc_8_16_read_i2c }, | 185 | .spi_write = snd_soc_7_9_spi_write |
186 | }, | ||
187 | { | ||
188 | .addr_bits = 8, .data_bits = 8, | ||
189 | .write = snd_soc_8_8_write, .read = snd_soc_8_8_read, | ||
190 | }, | ||
191 | { | ||
192 | .addr_bits = 8, .data_bits = 16, | ||
193 | .write = snd_soc_8_16_write, .read = snd_soc_8_16_read, | ||
194 | .i2c_read = snd_soc_8_16_read_i2c, | ||
195 | }, | ||
186 | }; | 196 | }; |
187 | 197 | ||
188 | /** | 198 | /** |