Skip to content

stdio: Clean up

Marek Vasut u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6stdio: dm: Remove dead code in console.ccommon/console.c+0 -110 replies
2/6stdio: dm: Add accessors to stdio_devices[]common/stdio.c include/stdio_dev.h+28 -00 replies
3/6stdio: dm: Make stdio_devices[] localcommon/cmd_console.c common/cmd_terminal.c common/console.c +3 more+58 -301 reply
3/6stdio: dm: Make stdio_devices[] local+0 -00 replies
3/6stdio: dm: Make stdio_devices[] local+0 -01 reply
4/6stdio: dm: Add stdio_fd_to_name() callcommon/stdio.c include/stdio_dev.h+13 -00 replies
5/6stdio: dm: Use stdio_fd_to_name() call to localize stdio_namescommon/cmd_console.c common/console.c common/stdio.c +1 more+8 -90 replies
6/6stdio: dm: Optimize stdio_print_current_devices()common/console.c+19 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/6] stdio: Clean up

Clean up a few things in STDIO. Mostly, don't export structures directly, but introduce some kind of accessors if needed and remove dead code.

NOTE: I'm still working on the "compile tested on 2 different architectures"
part. I'll keep you posted about that. I'd be glad for a review though. I'd hate to pull in logic errors, especially into such critical code.
NOTE2: Cross-posting cover to DM list, so I get feedback from those guys.

Marek Vasut (6):
stdio: dm: Murder dead code in console.c
stdio: dm: Add accessors to stdio_devices[]
stdio: dm: Make stdio_devices[] local
stdio: dm: Add stdio_fd_to_name() call
stdio: dm: Use stdio_fd_to_name() call to localize stdio_names
stdio: dm: Optimize stdio_print_current_devices()

 common/cmd_console.c  |    8 ++---
 common/cmd_terminal.c |    9 ++++--
 common/console.c      |   84 ++++++++++++++++++++++++++-----------------------
 common/fdt_support.c  |    8 ++++-
 common/stdio.c        |   46 +++++++++++++++++++++++++--
 include/stdio_dev.h   |    9 ++----
 6 files changed, 110 insertions(+), 54 deletions(-)
Cc Wolfgang Denk <[email protected]>
Cc u-boot-dm at lists.denx.de
Signature · 1 line
1.7.10.4