From: Marek Vasut Date: Sat, 1 Sep 2012 00:44:09 +0200 Subject: [U-Boot] [PATCH 0/6] stdio: Clean up Message-ID: <1346453055-30888-1-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: u-boot-dm at lists.denx.de -- 1.7.10.4