[PATCH 22/62] i386/shared/comm/uart.c: Remove unused uart_set_driver_handler() method

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 15 20:00:12 UTC 2014


---
 c/src/lib/libbsp/i386/shared/comm/uart.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.c b/c/src/lib/libbsp/i386/shared/comm/uart.c
index a211188..58421f4 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.c
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.c
@@ -447,27 +447,6 @@ static void ( *driver_input_handler_com1 )( void *,  char *, int ) = 0;
 static void ( *driver_input_handler_com2 )( void *,  char *, int ) = 0;
 
 /*
- * This routine sets the handler to handle the characters received
- * from the serial port.
- */
-static void uart_set_driver_handler(
-  int port,
-  void ( *handler )( void *,  char *, int )
-)
-{
-  switch( port )
-  {
-    case BSP_UART_COM1:
-     driver_input_handler_com1 = handler;
-     break;
-
-    case BSP_UART_COM2:
-     driver_input_handler_com2 = handler;
-     break;
-  }
-}
-
-/*
  * Set channel parameters
  */
 void
-- 
1.9.3




More information about the devel mailing list