]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb75ad654b405683eb857f102797e7a8e690a837d
tree782f08f41500c7d1437fde13ac13580bd79671b9
parenta46cac0a746cf9a2042853c7f6782f220e834d18
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