mfd: wcd9xxx: Get micbias cap mode config from device tree

Parse device tree to get micbias external capacitor mode to fill it into
platform data.  External capacitor mode needs to be passed to codec drvier
so that codec driver can configure it.

Change-Id: I5a2137d7ede96a324ad43e48b8642bbf8ed2118e
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
(cherry picked from commit adf25973156d308d147ceb4169e03a6e2f2cee57)
Signed-off-by: Hieu Phan <aznrice2k4@gmail.com>
ASoC: msm: Fix issues to improve code quality

Various comparisons, initializations and boundary
cases were found. With some analysis, the issues
are fixed.

Change-Id: I5816353eabbe6f12f9992ed5ba8e71dd28ae44a5
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
(cherry picked from commit 4fd6993ee7a3cb3fd7b461fff93701da4781cf6b)
Signed-off-by: Hieu Phan <aznrice2k4@gmail.com>

Conflicts:
	drivers/mfd/pm8xxx-spk.c