[U-Boot] [PATCH 09/30] dm: sound: max98095: 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 max98095_update_bits() to max98095_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/max98095.c | 152 ++++++++++++++++++++-------------------
1 file changed, 78 insertions(+), 74 deletions(-)
Applied to u-boot-dm/master
More information about the U-Boot
mailing list