[U-Boot] [PATCH 08/30] dm: sound: wm8994: Pass private data to internal functions

sjg at google.com sjg at google.com
Sun Dec 9 23:23:23 UTC 2018


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 at chromium.org>
---

 drivers/sound/wm8994.c | 296 +++++++++++++++++++++--------------------
 1 file changed, 154 insertions(+), 142 deletions(-)

Applied to u-boot-dm/master


More information about the U-Boot mailing list