diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-06-10 23:36:44 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-14 09:29:31 +0000 |
commit | c8a649c08f92d4d2255626da4e1cd7a6d71469e7 (patch) | |
tree | 14a899738d09b37030585aca3b59344595208e36 /src/superio | |
parent | 846b4941fee842bc359fa2b611cf0c3fc4f158b2 (diff) |
src: Use of device_t is deprecated
Change-Id: I9cebfc5c77187bd81094031c43ff6df094908417
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/27010
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/superio')
-rw-r--r-- | src/superio/intel/i8900/i8900.h | 6 | ||||
-rw-r--r-- | src/superio/winbond/wpcd376i/early_serial.c | 2 | ||||
-rw-r--r-- | src/superio/winbond/wpcd376i/superio.c | 2 | ||||
-rw-r--r-- | src/superio/winbond/wpcd376i/wpcd376i.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/superio/intel/i8900/i8900.h b/src/superio/intel/i8900/i8900.h index 0312d41cbb..3879a36423 100644 --- a/src/superio/intel/i8900/i8900.h +++ b/src/superio/intel/i8900/i8900.h @@ -49,8 +49,8 @@ #define I8900_UART_CLK_PREDIVIDE_26 0x02 #define I8900_ENABLE_SIRQ 0x01 -void i8900_configure_uart_clk(device_t dev, u8 predivide); -void i8900_enable_serial(device_t dev, u16 iobase); -void i8900_enable_wdt(device_t dev, u16 iobase); +void i8900_configure_uart_clk(pnp_devfn_t dev, u8 predivide); +void i8900_enable_serial(pnp_devfn_t dev, u16 iobase); +void i8900_enable_wdt(pnp_devfn_t dev, u16 iobase); #endif diff --git a/src/superio/winbond/wpcd376i/early_serial.c b/src/superio/winbond/wpcd376i/early_serial.c index 4845dd626e..115e097492 100644 --- a/src/superio/winbond/wpcd376i/early_serial.c +++ b/src/superio/winbond/wpcd376i/early_serial.c @@ -21,7 +21,7 @@ #include <device/pnp_def.h> #include "wpcd376i.h" -void wpcd376i_enable_serial(device_t dev, u16 iobase) +void wpcd376i_enable_serial(pnp_devfn_t dev, u16 iobase) { pnp_set_logical_device(dev); pnp_set_enable(dev, 0); diff --git a/src/superio/winbond/wpcd376i/superio.c b/src/superio/winbond/wpcd376i/superio.c index 25012b08e8..c18b9e57f8 100644 --- a/src/superio/winbond/wpcd376i/superio.c +++ b/src/superio/winbond/wpcd376i/superio.c @@ -24,7 +24,7 @@ #include "chip.h" #include "wpcd376i.h" -static void init(device_t dev) +static void init(struct device *dev) { if (!dev->enabled) return; diff --git a/src/superio/winbond/wpcd376i/wpcd376i.h b/src/superio/winbond/wpcd376i/wpcd376i.h index b894e4e0c7..8d770b4384 100644 --- a/src/superio/winbond/wpcd376i/wpcd376i.h +++ b/src/superio/winbond/wpcd376i/wpcd376i.h @@ -30,6 +30,6 @@ #define WPCD376I_KBCK 6 /* PS/2 keyboard */ #define WPCD376I_GPIO 7 /* General Purpose I/O */ -void wpcd376i_enable_serial(device_t dev, u16 iobase); +void wpcd376i_enable_serial(pnp_devfn_t dev, u16 iobase); #endif |