dm: sound: max98095: Pass private data to internal functions
authorSimon Glass <sjg@chromium.org>
Mon, 3 Dec 2018 11:37:25 +0000 (04:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commita832a3e36f5c76a23aa3f1cae477835859e9781f
treec0221e21500f35a7a3d7156b4e69093033a37462
parent107ab83e618486603190cc07bed2eae1fb9ca06f
dm: sound: max98095: 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 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@chromium.org>
drivers/sound/max98095.c