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>
This commit is contained in:
parent
846b4941fe
commit
c8a649c08f
35 changed files with 109 additions and 104 deletions
|
|
@ -14,13 +14,13 @@
|
|||
#include <device/pnp_def.h>
|
||||
|
||||
#define SCH4307_CONFIG_PORT 0x162e
|
||||
static inline void shc4307_enter_ext_func_mode(device_t dev)
|
||||
static inline void shc4307_enter_ext_func_mode(pnp_devfn_t dev)
|
||||
{
|
||||
unsigned port = dev >> 8;
|
||||
outb(0x55, port);
|
||||
}
|
||||
|
||||
static inline void shc4307_exit_ext_func_mode(device_t dev)
|
||||
static inline void shc4307_exit_ext_func_mode(pnp_devfn_t dev)
|
||||
{
|
||||
unsigned port = dev >> 8;
|
||||
outb(0xaa, port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue