diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-06-08 19:00:44 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-06-09 17:24:07 +0000 |
commit | 4b73fa97ce98adda75e889ddbb759022e6cb11b2 (patch) | |
tree | a844fe813a095ad8f3091403c2d00ec740c2f9a6 /src/mainboard/samsung/lumpy | |
parent | 5cb876cc1fef34e238e37facb36a77dbc45ced9a (diff) |
mainboard: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Use pci_devfn_t or pnp_devfn_t instead of device_t in romstage.
Change-Id: Ie0ae3972eacc97ae154dad4fafd171aa1f38683a
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26984
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/samsung/lumpy')
-rw-r--r-- | src/mainboard/samsung/lumpy/chromeos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/samsung/lumpy/chromeos.c b/src/mainboard/samsung/lumpy/chromeos.c index a287c74538..0f672b6e5f 100644 --- a/src/mainboard/samsung/lumpy/chromeos.c +++ b/src/mainboard/samsung/lumpy/chromeos.c @@ -40,7 +40,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) { - device_t dev = dev_find_slot(0, PCI_DEVFN(0x1f,0)); + struct device *dev = dev_find_slot(0, PCI_DEVFN(0x1f, 0)); u16 gen_pmcon_1 = pci_read_config32(dev, GEN_PMCON_1); u8 lid = ec_read(0x83); @@ -91,7 +91,7 @@ int get_write_protect_state(void) pci_devfn_t dev; dev = PCI_DEV(0, 0x1f, 2); #else - device_t dev; + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(0x1f, 2)); #endif return (pci_read_config32(dev, SATA_SP) >> FLAG_SPI_WP) & 1; @@ -103,7 +103,7 @@ int get_developer_mode_switch(void) pci_devfn_t dev; dev = PCI_DEV(0, 0x1f, 2); #else - device_t dev; + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(0x1f, 2)); #endif return (pci_read_config32(dev, SATA_SP) >> FLAG_DEV_MODE) & 1; @@ -115,7 +115,7 @@ int get_recovery_mode_switch(void) pci_devfn_t dev; dev = PCI_DEV(0, 0x1f, 2); #else - device_t dev; + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(0x1f, 2)); #endif return (pci_read_config32(dev, SATA_SP) >> FLAG_REC_MODE) & 1; |