From 127e976ec287df4ceb16a3b176b58497e58e0d8d Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 4 Aug 2010 19:29:11 +0000 Subject: Remove warnings from USB debug console code. Signed-off-by: Myles Watson Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5683 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/console/usbdebug_console.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/console/usbdebug_console.c') diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c index 2e71cc3ea3..6fe0ef7ee6 100644 --- a/src/console/usbdebug_console.c +++ b/src/console/usbdebug_console.c @@ -29,20 +29,20 @@ void set_ehci_base(unsigned ehci_base) if (!dbg_info.ehci_debug) return; - diff = dbg_info.ehci_caps - ehci_base; + diff = (unsigned)dbg_info.ehci_caps - ehci_base; dbg_info.ehci_regs -= diff; dbg_info.ehci_debug -= diff; - dbg_info.ehci_caps = ehci_base; + dbg_info.ehci_caps = (void*)ehci_base; } void set_ehci_debug(unsigned ehci_debug) { - dbg_info.ehci_debug = ehci_debug; + dbg_info.ehci_debug = (void*)ehci_debug; } unsigned get_ehci_debug(void) { - return dbg_info.ehci_debug; + return (unsigned)dbg_info.ehci_debug; } static void dbgp_init(void) @@ -61,7 +61,7 @@ static void dbgp_init(void) static void dbgp_tx_byte(unsigned char data) { if (dbg_info.ehci_debug) - dbgp_bulk_write_x(&dbg_info, &data, 1); + dbgp_bulk_write_x(&dbg_info, (char*)&data, 1); } static unsigned char dbgp_rx_byte(void) @@ -76,7 +76,7 @@ static unsigned char dbgp_rx_byte(void) static int dbgp_tst_byte(void) { - return dbg_info.ehci_debug; + return (int)dbg_info.ehci_debug; } static const struct console_driver usbdebug_direct_console __console = { -- cgit v1.2.3