ASoC: wm8985: Refactor set_pll code to avoid gcc warnings
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 24 Dec 2012 17:55:37 +0000 (15:55 -0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:43 +0000 (13:34 +0000)
commit8ca8e09f7896f9effc62e48119a606243765cd73
tree3f6326a574f9e037514fc42d52e2e3f6384b803e
parent92920e2bdd9a75b84a459896fa51678c8a179cd0
ASoC: wm8985: Refactor set_pll code to avoid gcc warnings

commit 5f3d25c08dee44a40229f1f9e8934f3217478a67 upstream.

Refactor set_pll code to avoid the following warnings:

sound/soc/codecs/wm8985.c:852:50: warning: 'pll_div.k' may be used uninitialized in this function
sound/soc/codecs/wm8985.c:849:9: warning: 'pll_div.n' may be used uninitialized in this function
sound/soc/codecs/wm8985.c:848:23: warning: 'pll_div.div2' may be used uninitialized in this function

Do the same as in commit 86ce6c9a (ASoC: WM8804: Refactor set_pll code to avoid
GCC warnings).

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/codecs/wm8985.c