mb/amd,google: Rename static functions to mainboard_enable

Let's not have 7 boards of all use a different name for
the .enable_dev function in mainboard chip_operations.

Change-Id: I07f3569e6af85f4f1635595125fe2881ab9ddd43
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50999
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Kyösti Mälkki 2021-02-22 06:03:08 +02:00
parent 32b99169a5
commit 813b2f030d
7 changed files with 14 additions and 14 deletions

View File

@ -95,7 +95,7 @@ static void mainboard_init(void *chip_info)
mainboard_program_emmc_gpios(); mainboard_program_emmc_gpios();
} }
static void bilby_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -106,5 +106,5 @@ static void bilby_enable(struct device *dev)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = bilby_enable, .enable_dev = mainboard_enable,
}; };

View File

@ -75,7 +75,7 @@ static void mainboard_init(void *chip_info)
/************************************************* /*************************************************
* enable the dedicated function in gardenia board. * enable the dedicated function in gardenia board.
*************************************************/ *************************************************/
static void gardenia_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " printk(BIOS_INFO, "Mainboard "
CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -86,5 +86,5 @@ static void gardenia_enable(struct device *dev)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = gardenia_enable, .enable_dev = mainboard_enable,
}; };

View File

@ -89,7 +89,7 @@ static void mainboard_init(void *chip_info)
{ {
} }
static void majolica_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -100,5 +100,5 @@ static void majolica_enable(struct device *dev)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = majolica_enable, .enable_dev = mainboard_enable,
}; };

View File

@ -95,7 +95,7 @@ static void mainboard_init(void *chip_info)
mainboard_program_emmc_gpios(); mainboard_program_emmc_gpios();
} }
static void mandolin_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -106,5 +106,5 @@ static void mandolin_enable(struct device *dev)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = mandolin_enable, .enable_dev = mainboard_enable,
}; };

View File

@ -104,7 +104,7 @@ static void mainboard_init(void *chip_info)
/************************************************* /*************************************************
* enable the dedicated function in padmelon board. * enable the dedicated function in padmelon board.
*************************************************/ *************************************************/
static void padmelon_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " printk(BIOS_INFO, "Mainboard "
CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -115,5 +115,5 @@ static void padmelon_enable(struct device *dev)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = padmelon_enable, .enable_dev = mainboard_enable,
}; };

View File

@ -148,7 +148,7 @@ static void mainboard_init(void *chip_info)
/************************************************* /*************************************************
* Dedicated mainboard function * Dedicated mainboard function
*************************************************/ *************************************************/
static void kahlee_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " printk(BIOS_INFO, "Mainboard "
CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -176,7 +176,7 @@ void mainboard_suspend_resume(void)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = kahlee_enable, .enable_dev = mainboard_enable,
}; };
/* Variants may override these functions so see definitions in variants/ */ /* Variants may override these functions so see definitions in variants/ */

View File

@ -197,7 +197,7 @@ static void mainboard_fill_ssdt(const struct device *dev)
/************************************************* /*************************************************
* Dedicated mainboard function * Dedicated mainboard function
*************************************************/ *************************************************/
static void zork_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n"); printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@ -217,7 +217,7 @@ static void mainboard_final(void *chip_info)
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
.init = mainboard_init, .init = mainboard_init,
.enable_dev = zork_enable, .enable_dev = mainboard_enable,
.final = mainboard_final, .final = mainboard_final,
}; };