aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2010-12-14 10:15:36 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-14 13:15:34 -0500
commit465d7fcc913373783dbb4cdcf03ea05b430930d4 (patch)
treebe5450119fa0d5752fa9e7074b588d510a468076 /sound
parent83b6542533859d6ed6c95f8b869291e885eab5bd (diff)
ASoC: soc-cache: A few minor stylistic changes
Remove redundant parentheses/spaces in the use of the sizeof operator. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-cache.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index 678fd75d4511..0e17b4050425 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -85,7 +85,7 @@ static int snd_soc_4_12_spi_write(void *control_data, const char *data,
85 msg[1] = data[0]; 85 msg[1] = data[0];
86 86
87 spi_message_init(&m); 87 spi_message_init(&m);
88 memset(&t, 0, (sizeof t)); 88 memset(&t, 0, sizeof t);
89 89
90 t.tx_buf = &msg[0]; 90 t.tx_buf = &msg[0];
91 t.len = len; 91 t.len = len;
@@ -166,7 +166,7 @@ static int snd_soc_7_9_spi_write(void *control_data, const char *data,
166 msg[1] = data[1]; 166 msg[1] = data[1];
167 167
168 spi_message_init(&m); 168 spi_message_init(&m);
169 memset(&t, 0, (sizeof t)); 169 memset(&t, 0, sizeof t);
170 170
171 t.tx_buf = &msg[0]; 171 t.tx_buf = &msg[0];
172 t.len = len; 172 t.len = len;
@@ -246,7 +246,7 @@ static int snd_soc_8_8_spi_write(void *control_data, const char *data,
246 msg[1] = data[1]; 246 msg[1] = data[1];
247 247
248 spi_message_init(&m); 248 spi_message_init(&m);
249 memset(&t, 0, (sizeof t)); 249 memset(&t, 0, sizeof t);
250 250
251 t.tx_buf = &msg[0]; 251 t.tx_buf = &msg[0];
252 t.len = len; 252 t.len = len;
@@ -326,7 +326,7 @@ static int snd_soc_8_16_spi_write(void *control_data, const char *data,
326 msg[2] = data[2]; 326 msg[2] = data[2];
327 327
328 spi_message_init(&m); 328 spi_message_init(&m);
329 memset(&t, 0, (sizeof t)); 329 memset(&t, 0, sizeof t);
330 330
331 t.tx_buf = &msg[0]; 331 t.tx_buf = &msg[0];
332 t.len = len; 332 t.len = len;
@@ -513,7 +513,7 @@ static int snd_soc_16_8_spi_write(void *control_data, const char *data,
513 msg[2] = data[2]; 513 msg[2] = data[2];
514 514
515 spi_message_init(&m); 515 spi_message_init(&m);
516 memset(&t, 0, (sizeof t)); 516 memset(&t, 0, sizeof t);
517 517
518 t.tx_buf = &msg[0]; 518 t.tx_buf = &msg[0];
519 t.len = len; 519 t.len = len;
@@ -633,7 +633,7 @@ static int snd_soc_16_16_spi_write(void *control_data, const char *data,
633 msg[3] = data[3]; 633 msg[3] = data[3];
634 634
635 spi_message_init(&m); 635 spi_message_init(&m);
636 memset(&t, 0, (sizeof t)); 636 memset(&t, 0, sizeof t);
637 637
638 t.tx_buf = &msg[0]; 638 t.tx_buf = &msg[0];
639 t.len = len; 639 t.len = len;
@@ -1342,7 +1342,7 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)
1342 * that register. 1342 * that register.
1343 */ 1343 */
1344 bmp_size = codec_drv->reg_cache_size; 1344 bmp_size = codec_drv->reg_cache_size;
1345 sync_bmp = kmalloc(BITS_TO_LONGS(bmp_size) * sizeof (long), 1345 sync_bmp = kmalloc(BITS_TO_LONGS(bmp_size) * sizeof(long),
1346 GFP_KERNEL); 1346 GFP_KERNEL);
1347 if (!sync_bmp) { 1347 if (!sync_bmp) {
1348 ret = -ENOMEM; 1348 ret = -ENOMEM;