arm: socfpga: scan: Staticize scan_mgr_io_scan_chain_prg()
authorMarek Vasut <marex@denx.de>
Sat, 25 Jul 2015 07:33:28 +0000 (09:33 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:07 +0000 (14:14 +0200)
This function is never used outside of scan_manager.c , so make it static.
Zap the prototype in scan_manager.h and move the documentation above the
function. Make the documentation kerneldoc compliant.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/include/mach/scan_manager.h
arch/arm/mach-socfpga/scan_manager.c

index 1155fd3decc9b8c4b0161d32c8f05cb3f89c5c43..3602aceb07864f53574b9490d5b2da61b8bc15b8 100644 (file)
@@ -68,17 +68,6 @@ struct socfpga_scan_manager {
 #define SCANMGR_STAT_ACTIVE_GET(x) (((x) & 0x80000000) >> 31)
 #define SCANMGR_STAT_WFIFOCNT_GET(x) (((x) & 0x70000000) >> 28)
 
-/*
- * Program HPS IO Scan Chain
- * io_scan_chain_id - IO scan chain ID
- * io_scan_chain_len_in_bits - IO scan chain length in bits
- * iocsr_scan_chain - IO scan chain table
- */
-uint32_t scan_mgr_io_scan_chain_prg(
-       uint32_t io_scan_chain_id,
-       uint32_t io_scan_chain_len_in_bits,
-       const uint32_t *iocsr_scan_chain);
-
 extern const uint32_t iocsr_scan_chain0_table[
        ((CONFIG_HPS_IOCSR_SCANCHAIN0_LENGTH / 32) + 1)];
 extern const uint32_t iocsr_scan_chain1_table[
index a820b1b1bfcb5d8c674a8f21c26f048fac927fc2..ab7aaecfb7046afb70a6b8f5bda5699151db5128 100644 (file)
@@ -38,11 +38,15 @@ static inline uint32_t scan_chain_engine_is_idle(uint32_t max_iter)
        return 1;
 }
 
-/* Program HPS IO Scan Chain */
-uint32_t scan_mgr_io_scan_chain_prg(
-       uint32_t io_scan_chain_id,
-       uint32_t io_scan_chain_len_in_bits,
-       const uint32_t *iocsr_scan_chain)
+/**
+ * scan_mgr_io_scan_chain_prg() - Program HPS IO Scan Chain
+ * @io_scan_chain_id:          IO scan chain ID
+ * @io_scan_chain_len_in_bits: IO scan chain length in bits
+ * @iocsr_scan_chain:          IO scan chain table
+ */
+static int scan_mgr_io_scan_chain_prg(const unsigned int io_scan_chain_id,
+                                     uint32_t io_scan_chain_len_in_bits,
+                                     const uint32_t *iocsr_scan_chain)
 {
        uint16_t tdi_tdo_header;
        uint32_t io_program_iter;