]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ASoC: Remove unneeded use of address-of operator
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 8 Nov 2010 10:41:53 +0000 (10:41 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 8 Nov 2010 16:51:45 +0000 (16:51 +0000)
There is no need to use '&' in this case.  Either way, if a is an array
of some type, then a == &a == &a[0].

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>
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8741.c

index dfd1dbd71f1d65d0a2b024948911b02a101cdede..36c035bf4e427cc93cd881f7b992e914c2760972 100644 (file)
@@ -906,7 +906,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8580 = {
        .set_bias_level = wm8580_set_bias_level,
        .reg_cache_size = ARRAY_SIZE(wm8580_reg),
        .reg_word_size = sizeof(u16),
-       .reg_cache_default = &wm8580_reg,
+       .reg_cache_default = wm8580_reg,
 };
 
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
index 43c49dfc99289a996083debafce90fadd2afb354..2543a26513fb2ac4c29b786b8a770e713dd1dd37 100644 (file)
@@ -456,7 +456,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8741 = {
        .resume =       wm8741_resume,
        .reg_cache_size = ARRAY_SIZE(wm8741_reg_defaults),
        .reg_word_size = sizeof(u16),
-       .reg_cache_default = &wm8741_reg_defaults,
+       .reg_cache_default = wm8741_reg_defaults,
 };
 
 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)