azalia: Make find_verb function non-static

To allow dropping copies of this function, make it non-static. Also,
rename it to `azalia_find_verb` as the function is now globally visible.
Finally, replace the copies in chipset code with `azalia_find_verb`.

Change-Id: Ie66323b2c62139e86d3d7e003f6653a3def7b5f2
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48348
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Angel Pons
2020-12-05 18:15:48 +01:00
committed by Hung-Te Lin
parent e108e41b33
commit 75c4f06314
7 changed files with 8 additions and 97 deletions

View File

@@ -85,7 +85,7 @@ no_codec:
return 0;
}
static u32 find_verb(struct device *dev, u32 viddid, const u32 **verb)
u32 azalia_find_verb(struct device *dev, u32 viddid, const u32 **verb)
{
int idx = 0;
@@ -179,7 +179,7 @@ static void codec_init(struct device *dev, u8 *base, int addr)
/* 2 */
reg32 = read32(base + HDA_IR_REG);
printk(BIOS_DEBUG, "azalia_audio: codec viddid: %08x\n", reg32);
verb_size = find_verb(dev, reg32, &verb);
verb_size = azalia_find_verb(dev, reg32, &verb);
if (!verb_size) {
printk(BIOS_DEBUG, "azalia_audio: No verb!\n");