ASoC: Remove unneeded use of address-of operator
Subsystems (3)
PATCH 1/1 ASoC: Remove unneeded use of address-of operator
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 <[email protected]>
--- sound/soc/codecs/wm8580.c | 2 +- sound/soc/codecs/wm8741.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8580.c +1 -1
@@ -905,7 +905,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 )
sound/soc/codecs/wm8741.c +1 -1
@@ -455,7 +455,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 )
Signature · 1 line
1.7.3.2
Quoted 4 lines · Dimitris Papastamos
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 <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 4 lines · Dimitris Papastamos
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 <[email protected]>
Applied, thanks.