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 <[email protected]> --- drivers/sound/max98095.c | 152 ++++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 74 deletions(-) Applied to u-boot-dm/master _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

