mb/intel: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ie2c466a280d18979d5f9ca182793ed43431d2010
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26090
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
Elyes HAOUAS 2018-05-04 20:46:54 +02:00 committed by Martin Roth
parent f5f1b383b1
commit 4182c80286
13 changed files with 17 additions and 17 deletions

View File

@ -39,7 +39,7 @@ void mainboard_suspend_resume(void)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);

View File

@ -34,7 +34,7 @@
* mainboard_enable is executed as first thing after enumerate_buses().
* This is the earliest point to add customization.
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
}

View File

@ -34,7 +34,7 @@
* mainboard_enable is executed as first thing after enumerate_buses().
* This is the earliest point to add customization.
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
}

View File

@ -42,7 +42,7 @@ void mainboard_suspend_resume(void)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
}

View File

@ -20,7 +20,7 @@
#include <device/pci.h>
#include <drivers/intel/gma/int15.h>
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_CRT, 0);

View File

@ -19,7 +19,7 @@
#include <drivers/intel/gma/int15.h>
#include <southbridge/intel/common/gpio.h>
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_DEBUG, "Memory voltage: %s\n",
get_gpio(8) ? "1.35V" : "1.5V");

View File

@ -33,7 +33,7 @@
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);

View File

@ -26,7 +26,7 @@
#include "ec.h"
#include <variant/gpio.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))
mainboard_ec_init();
@ -36,7 +36,7 @@ static void mainboard_init(device_t dev)
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -29,7 +29,7 @@
static const char *oem_id_maxim = "INTEL";
static const char *oem_table_id_maxim = "SCRDMAX";
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
@ -42,7 +42,7 @@ static uint8_t select_audio_codec(void)
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -96,7 +96,7 @@ static unsigned long mainboard_write_acpi_tables(
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->write_acpi_tables = mainboard_write_acpi_tables;

View File

@ -21,7 +21,7 @@
* mainboard_enable is executed as first thing after enumerate_buses().
* This is the earliest point to add customization.
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
}

View File

@ -40,7 +40,7 @@ void mainboard_suspend_resume(void)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
}

View File

@ -21,7 +21,7 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
@ -30,7 +30,7 @@ static void mainboard_init(device_t dev)
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -38,7 +38,7 @@ void mainboard_suspend_resume(void)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);