]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 5
authorMarek Vasut <marex@denx.de>
Mon, 20 Jul 2015 07:20:20 +0000 (09:20 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:31 +0000 (08:17 +0200)
Fix the data types, constify where applicable.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sequencer.c

index e575c217a29f89a97a2b507e1c892fc57024be7b..b7001164038208e4e9c220836e8d727f0c2a5eee 100644 (file)
@@ -1593,13 +1593,13 @@ static int sdr_find_window_center(const u32 grp, const u32 work_bgn,
        return -EINVAL;
 }
 
-/* find a good dqs enable to use */
-static uint32_t rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase(u32 grp)
+static u32 rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase(const u32 grp)
 {
-       uint32_t d, p, i;
-       uint32_t dtaps_per_ptap;
-       uint32_t work_bgn, work_end;
-       uint32_t found_passing_read, found_failing_read, initial_failing_dtap;
+       u32 d, p, i;
+       u32 dtaps_per_ptap;
+       u32 work_bgn, work_end;
+       u32 found_passing_read, found_failing_read, initial_failing_dtap;
+       int ret;
 
        debug("%s:%d %u\n", __func__, __LINE__, grp);