]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: adau17x1: Use empty struct initializer
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 14 Feb 2018 15:39:03 +0000 (13:39 -0200)
committerMark Brown <broonie@kernel.org>
Wed, 14 Feb 2018 16:16:56 +0000 (16:16 +0000)
commited14af4cc245ae350c27dfa6a5df81a179312585
treeccc316b05f7e442268b9954704145f2335a17157
parentaeebf275d5f4a55f82d2bcec96a5d25afd6152dc
ASoC: adau17x1: Use empty struct initializer

{ 0 } only clears the first member of the structure.

The first member of the snd_soc_dapm_update struct is a pointer,
and writing 0 to a pointer results in a sparse warning.

Use the empty struct initializer that clears all the struct members
and fixes the sparse warning.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau17x1.c