[U-Boot] [PATCH 17/30] dm: sound: wm8994: Drop wm8994_i2c_init()
Simon Glass
sjg at chromium.org
Mon Dec 3 11:37:33 UTC 2018
This function has only one line in it. Drop it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/sound/wm8994.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c
index be27e2b1e7e..a888a0b4c95 100644
--- a/drivers/sound/wm8994.c
+++ b/drivers/sound/wm8994.c
@@ -61,16 +61,6 @@ static int bclk_divs[] = {
640, 880, 960, 1280, 1760, 1920
};
-/*
- * Initialise I2C for wm 8994
- *
- * @param bus no i2c bus number in which wm8994 is connected
- */
-static void wm8994_i2c_init(int bus_no)
-{
- i2c_set_bus_num(bus_no);
-}
-
/*
* Writes value to a device register through i2c
*
@@ -918,7 +908,7 @@ int wm8994_init(const void *blob, enum en_audio_interface aif_id,
/* shift the device address by 1 for 7 bit addressing */
wm8994_info.i2c_addr = pcodec_info.i2c_dev_addr;
- wm8994_i2c_init(pcodec_info.i2c_bus);
+ i2c_set_bus_num(pcodec_info.i2c_bus);
ret = wm8994_device_init(&wm8994_info);
if (ret < 0) {
debug("%s: wm8994 codec chip init failed\n", __func__);
--
2.20.0.rc1.387.gf8505762e3-goog
More information about the U-Boot
mailing list