]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: WM8903: Remove conditionals checking pdata != NULL
authorStephen Warren <swarren@nvidia.com>
Fri, 2 Dec 2011 22:08:39 +0000 (15:08 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 6 Dec 2011 10:29:22 +0000 (10:29 +0000)
commit9434341a0d485cba6e60246a5b83405193a48fa3
treee58b23a8a3cf92e8417c873d2b885faa6ccdccbe
parent1c3a77b495347e99764f53024c49f71fc595fd11
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