dm: sound: wm8994: Pass private data to internal functions
authorSimon Glass <sjg@chromium.org>
Mon, 3 Dec 2018 11:37:24 +0000 (04:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commit107ab83e618486603190cc07bed2eae1fb9ca06f
tree782f08f41500c7d1437fde13ac13580bd79671b9
parent7153ad834f72da49eadf8b5e66d593f88514be7c
dm: sound: wm8994: Pass private data to internal functions

At present the driver-private data is global. To allow this code to be
used with driver model, change it to pass the data down to each function.
Use the name 'priv' consistently throughout.

Also rename wm8994_update_bits() to wm8994_bic_or() which is more
descriptive and shorter, thus breaking fewer lines with the parameter
addition.

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