Skip to content
Snippets Groups Projects
  1. Oct 19, 2012
  2. Oct 17, 2012
    • Marek Vasut's avatar
      kerneldoc: Annotate drivers/serial/serial.c · 9cd2b9e4
      Marek Vasut authored
      
      Add kerneldoc annotations into serial core.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      9cd2b9e4
    • Marek Vasut's avatar
      serial: Reorder get_current() · dee19416
      Marek Vasut authored
      
      Reorder the get_current() function to make it a bit more readable.
      The code does not grow and there is minor change in the code logic,
      where dev != NULL is now checked in any case.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      dee19416
    • Marek Vasut's avatar
      serial: Reorder serial_assign() · 6d93e258
      Marek Vasut authored
      
      Reorder serial_assign() function to get rid of the extra level of
      indentation. Also, adjust the return value to be -EINVAL instead of
      positive one to be more consistent.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      6d93e258
    • Marek Vasut's avatar
      serial: Use default_serial_puts() in drivers · ec3fd689
      Marek Vasut authored
      
      Replace the in-place ad-hoc implementation of serial_puts() within
      the drivers with default_serial_puts() call. This cuts down on the
      code duplication quite a bit.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      ec3fd689
    • Marek Vasut's avatar
      serial: Implement default_serial_puts() · bfb7d7a3
      Marek Vasut authored
      
      U-Boot contains a lot of duplicit implementations of serial_puts()
      call which just pipes single characters into the port in loop. Implement
      function that does this behavior into common code, so others can make
      easy use of it.
      
      This function is called default_serial_puts() and it's sole purpose
      is to call putc() in loop on the whole string passed to it.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      bfb7d7a3
  3. Oct 16, 2012
  4. Oct 15, 2012
Loading