diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-27 17:58:57 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-04 02:33:54 +0000 |
commit | 15a487a57666a7eb42d33f41e4a235efe67439d8 (patch) | |
tree | aca64f438b9aa7f15837d39a314cf63e80837785 /src/soc/intel/fsp_broadwell_de/smbus.c | |
parent | 509edac717d608d94f8c343fc3de16310c020dac (diff) |
soc/intel/fsp_broadwell_de: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I68c455d4bc524c2dd2d3ba87ab6641e70c78521c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26589
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/smbus.c')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/smbus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/smbus.c b/src/soc/intel/fsp_broadwell_de/smbus.c index 039f84131a..b5870d77cf 100644 --- a/src/soc/intel/fsp_broadwell_de/smbus.c +++ b/src/soc/intel/fsp_broadwell_de/smbus.c @@ -26,7 +26,7 @@ #include <soc/pci_devs.h> #include <soc/smbus.h> -static void pch_smbus_init(device_t dev) +static void pch_smbus_init(struct device *dev) { struct resource *res; @@ -36,7 +36,7 @@ static void pch_smbus_init(device_t dev) outb(SMBUS_SLAVE_ADDR, res->base + SMB_RCV_SLVA); } -static void pch_smbus_enable(device_t dev) +static void pch_smbus_enable(struct device *dev) { uint8_t reg8; @@ -45,7 +45,7 @@ static void pch_smbus_enable(device_t dev) pci_write_config8(dev, HOSTC, reg8); } -static int lsmbus_read_byte(device_t dev, uint8_t address) +static int lsmbus_read_byte(struct device *dev, uint8_t address) { uint16_t device; struct resource *res; @@ -58,7 +58,7 @@ static int lsmbus_read_byte(device_t dev, uint8_t address) return do_smbus_read_byte(res->base, device, address); } -static int lsmbus_write_byte(device_t dev, uint8_t address, uint8_t data) +static int lsmbus_write_byte(struct device *dev, uint8_t address, uint8_t data) { uint16_t device; struct resource *res; |