ASoC: WM8903: Create default platform data structure
authorStephen Warren <swarren@nvidia.com>
Fri, 2 Dec 2011 22:08:38 +0000 (15:08 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Dec 2011 11:19:08 +0000 (11:19 +0000)
commitc0eb27cf84ffd79347907f07ae33061ba0034c41
treee16f7811f2978b732ddbc0c7d983881c36a6ac0d
parent672b0c6a37d3bf951a449cff9f6c98b7dfc47a16
ASoC: WM8903: Create default platform data structure

When no platform data is supplied, point pdata at a default platform
structure. This enables two future changes:

a) Defines the default platform data values in a single place.
b) There is always a valid pdata pointer, so some conditional code can
   be simplified by a later patch.

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