ASoC: WM8903: Remove conditionals checking pdata != NULL
commitdb81778409227a0dc46ab95b95e1c7184ae9ef48
authorStephen Warren <swarren@nvidia.com>
Fri, 2 Dec 2011 22:08:39 +0000 (2 15:08 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 6 Dec 2011 10:29:22 +0000 (6 10:29 +0000)
treee58b23a8a3cf92e8417c873d2b885faa6ccdccbe
parenta0f203d384fadacba514748cd0095efeadeed96c
ASoC: WM8903: Remove conditionals checking pdata != NULL

The pdata pointer is now always valid. Remove any conditions that check
its validity.

This patch is mostly just removing an indentation level. One variable had
to be moved due to the removal of a scope, and one comment was split into
two. Viewing the patch with git show/diff -b will show that it's actually
very small.

Note that WM8903_MIC_BIAS_CONTROL_0 is now written unconditionally,
whereas it used to be written only if pdata was supplied. Since
defpdata.micdet_cfg = 0, this unconditional write simply echos the HW
defaults in the case where pdata is not supplied.

Based on work by John Bonesio, but significantly reworked since then.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8903.c