[coreboot-gerrit] Change in coreboot[master]: sb/intel/common: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Sun May 13 12:55:51 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26246


Change subject: sb/intel/common: Get rid of device_t
......................................................................

sb/intel/common: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I2cc18ceab33fc47302cc440dc1b6d9e2329401f2
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/southbridge/intel/common/acpi_pirq_gen.c
M src/southbridge/intel/common/acpi_pirq_gen.h
M src/southbridge/intel/common/rcba_pirq.c
M src/southbridge/intel/common/spi.c
4 files changed, 6 insertions(+), 6 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/26246/1

diff --git a/src/southbridge/intel/common/acpi_pirq_gen.c b/src/southbridge/intel/common/acpi_pirq_gen.c
index fc26d1a..dbd2bc0 100644
--- a/src/southbridge/intel/common/acpi_pirq_gen.c
+++ b/src/southbridge/intel/common/acpi_pirq_gen.c
@@ -32,7 +32,7 @@
 				      const char *lpcb_path)
 {
 	char buffer[DEVICE_PATH_MAX];
-	device_t dev;
+	struct device *dev;
 	pci_pin_t prev_int_pin = PCI_INT_NONE;
 	u8 prev_pci_dev = 0;
 	size_t num_devs = 0;
@@ -88,7 +88,7 @@
 	return num_devs;
 }
 
-void intel_acpi_gen_def_acpi_pirq(device_t dev)
+void intel_acpi_gen_def_acpi_pirq(struct device *dev)
 {
 	const char *lpcb_path = acpi_device_path(dev);
 	const size_t num_devs = enumerate_root_pci_pins(EMIT_NONE, lpcb_path);
diff --git a/src/southbridge/intel/common/acpi_pirq_gen.h b/src/southbridge/intel/common/acpi_pirq_gen.h
index bd702da..c01fcd8 100644
--- a/src/southbridge/intel/common/acpi_pirq_gen.h
+++ b/src/southbridge/intel/common/acpi_pirq_gen.h
@@ -36,7 +36,7 @@
 	PIRQ_H,
 } pirq_t;
 
-void intel_acpi_gen_def_acpi_pirq(device_t dev);
-enum pirq intel_common_map_pirq(const device_t dev, const pci_pin_t pci_pin);
+void intel_acpi_gen_def_acpi_pirq(struct device *dev);
+enum pirq intel_common_map_pirq(const struct device *dev, const pci_pin_t pci_pin);
 
 #endif
diff --git a/src/southbridge/intel/common/rcba_pirq.c b/src/southbridge/intel/common/rcba_pirq.c
index 44d2f3d..d298951 100644
--- a/src/southbridge/intel/common/rcba_pirq.c
+++ b/src/southbridge/intel/common/rcba_pirq.c
@@ -12,7 +12,7 @@
 	D26IR, D27IR, D28IR, D29IR, D30IR, D31IR,
 };
 
-enum pirq intel_common_map_pirq(const device_t dev, const pci_pin_t pci_pin)
+enum pirq intel_common_map_pirq(const struct device *dev, const pci_pin_t pci_pin)
 {
 	u8 slot = PCI_SLOT(dev->path.pci.devfn);
 	u8 shift = 4 * (pci_pin - PCI_INT_A);
diff --git a/src/southbridge/intel/common/spi.c b/src/southbridge/intel/common/spi.c
index 8cb5e62..4d75fa2 100644
--- a/src/southbridge/intel/common/spi.c
+++ b/src/southbridge/intel/common/spi.c
@@ -292,7 +292,7 @@
 	uint8_t *rcrb; /* Root Complex Register Block */
 	uint32_t rcba; /* Root Complex Base Address */
 	uint8_t bios_cntl;
-	device_t dev;
+	struct device *dev;
 	ich9_spi_regs *ich9_spi;
 	ich7_spi_regs *ich7_spi;
 	uint16_t hsfs;

-- 
To view, visit https://review.coreboot.org/26246
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cc18ceab33fc47302cc440dc1b6d9e2329401f2
Gerrit-Change-Number: 26246
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180513/f4481cc5/attachment.html>


More information about the coreboot-gerrit mailing list