dm: sound: wm8994: Create a new common init function
authorSimon Glass <sjg@chromium.org>
Mon, 3 Dec 2018 11:37:26 +0000 (04:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commit54e67e27394b997f72f6e2dbab98a11b6cd4c7d9
treedee968f4f76b100a0fa5240677b09b43fe8b871a
parenta832a3e36f5c76a23aa3f1cae477835859e9781f
dm: sound: wm8994: Create a new common init function

With driver model we cannot pass in the global struct, but instead want
to pass in the driver-private data. Split some of the code out of
wm8994_init() to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/sound/wm8994.c