[U-Boot] [PATCH 0/6] Serial cleanup series

Marek Vasut marex at denx.de
Sun Oct 7 02:07:00 CEST 2012


This series does minor cleanup on the serial subsystem. The first patch
implements default_serial_puts() to put an end to endless duplication of
while (*s) { putc(*s++); } variations. The further three patches make use
of it and clean up the serial code slightly.

The remaining two patches annotate the serial core with proper kerneldoc
documentation and add a simple template for it.

Marek Vasut (6):
  serial: Implement default_serial_puts()
  serial: Use default_serial_puts() in drivers
  serial: Reorder serial_assign()
  serial: Reorder get_current()
  kerneldoc: Annotate drivers/serial/serial.c
  kerneldoc: stdio: tmpl: Add stdio template

 arch/mips/cpu/mips32/au1x00/au1x00_serial.c |    8 +-
 arch/mips/cpu/mips32/incaip/asc_serial.c    |   10 +-
 arch/mips/cpu/xburst/jz_serial.c            |    8 +-
 arch/powerpc/cpu/mpc5xx/serial.c            |   10 +-
 arch/powerpc/cpu/mpc8220/uart.c             |    9 +-
 arch/powerpc/cpu/mpc8260/serial_scc.c       |    9 +-
 arch/powerpc/cpu/mpc8260/serial_smc.c       |    9 +-
 arch/powerpc/cpu/mpc85xx/serial_scc.c       |    9 +-
 arch/sparc/cpu/leon2/serial.c               |    9 +-
 arch/sparc/cpu/leon3/serial.c               |    9 +-
 board/Marvell/common/serial.c               |    9 +-
 board/bmw/serial.c                          |   10 +-
 board/cogent/serial.c                       |    8 +-
 board/esd/cpci750/serial.c                  |   10 +-
 board/evb64260/serial.c                     |    9 +-
 board/pcippc2/fpga_serial.c                 |    7 -
 board/pcippc2/fpga_serial.h                 |    1 -
 board/pcippc2/pcippc2.c                     |    3 +-
 board/prodrive/p3mx/serial.c                |   10 +-
 doc/DocBook/Makefile                        |    2 +-
 doc/DocBook/stdio.tmpl                      |   46 +++++++
 drivers/serial/altera_jtag_uart.c           |    8 +-
 drivers/serial/altera_uart.c                |    9 +-
 drivers/serial/atmel_usart.c                |    8 +-
 drivers/serial/lpc32xx_hsuart.c             |    8 +-
 drivers/serial/mcfuart.c                    |    9 +-
 drivers/serial/ns9750_serial.c              |   15 +-
 drivers/serial/opencores_yanu.c             |   10 +-
 drivers/serial/s3c4510b_uart.c              |    6 +-
 drivers/serial/s3c64xx.c                    |    8 +-
 drivers/serial/serial.c                     |  196 +++++++++++++++++++++++++--
 drivers/serial/serial_clps7111.c            |    9 +-
 drivers/serial/serial_imx.c                 |    9 +-
 drivers/serial/serial_ixp.c                 |    9 +-
 drivers/serial/serial_ks8695.c              |    9 +-
 drivers/serial/serial_lh7a40x.c             |    9 +-
 drivers/serial/serial_lpc2292.c             |    9 +-
 drivers/serial/serial_mxc.c                 |    9 +-
 drivers/serial/serial_netarm.c              |    9 +-
 drivers/serial/serial_pl01x.c               |    9 +-
 drivers/serial/serial_s3c44b0.c             |    9 +-
 drivers/serial/serial_sa1100.c              |    9 +-
 drivers/serial/serial_sh.c                  |    9 +-
 include/serial.h                            |    2 +
 44 files changed, 271 insertions(+), 321 deletions(-)
 create mode 100644 doc/DocBook/stdio.tmpl

Cc: Tom Rini <trini at ti.com>

-- 
1.7.10.4



More information about the U-Boot mailing list