From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Date: Fri, 7 Aug 2015 15:40:18 -0500 Subject: [U-Boot] [PATCH 3/6] arm: socfpga: scan: Clean up horrible macros In-Reply-To: <1438611733-7373-3-git-send-email-marex@denx.de> References: <1438611733-7373-1-git-send-email-marex@denx.de> <1438611733-7373-3-git-send-email-marex@denx.de> Message-ID: <55C517B2.9060406@opensource.altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 8/3/15 9:22 AM, Marek Vasut wrote: > Clean up the horrible macros present in the scan_manager.h . Firstly, > the function scan_mgr_io_scan_chain_prg() is static, yet all the macros > are used only within it, thus there is no point in having them in the > header file. Moreover, the macros are just making the code much less > readable, so remove them instead. > > Signed-off-by: Marek Vasut > --- > arch/arm/mach-socfpga/include/mach/scan_manager.h | 42 -------------------- > arch/arm/mach-socfpga/scan_manager.c | 47 ++++++++--------------- > 2 files changed, 17 insertions(+), 72 deletions(-) > Acked-by: Dinh Nguyen Thanks, Dinh