]> git.sur5r.net Git - u-boot/commitdiff
ddr: altera: Clean up rw_mgr_*_vfifo() part 1
authorMarek Vasut <marex@denx.de>
Sun, 19 Jul 2015 04:25:27 +0000 (06:25 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:19 +0000 (14:14 +0200)
Perform minor cleanup, fix data types and constify where applicable.
Add kerneldoc.

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

index ff1170227e0ebd907a1ed57dcf81358df6b7d5b2..3d0dc59a076881026117db851d3d2b694d73dfc9 100644 (file)
@@ -1286,17 +1286,31 @@ static uint32_t rw_mgr_mem_calibrate_read_test_all_ranks(uint32_t group,
                                              bit_chk, all_groups, 1);
 }
 
-static void rw_mgr_incr_vfifo(uint32_t grp, uint32_t *v)
+/**
+ * rw_mgr_incr_vfifo() - Increase VFIFO value
+ * @grp:       Read/Write group
+ * @v:         VFIFO value
+ *
+ * Increase VFIFO value.
+ */
+static void rw_mgr_incr_vfifo(const u32 grp, u32 *v)
 {
        writel(grp, &phy_mgr_cmd->inc_vfifo_hard_phy);
        (*v)++;
 }
 
-static void rw_mgr_decr_vfifo(uint32_t grp, uint32_t *v)
+/**
+ * rw_mgr_decr_vfifo() - Decrease VFIFO value
+ * @grp:       Read/Write group
+ * @v:         VFIFO value
+ *
+ * Decrease VFIFO value.
+ */
+static void rw_mgr_decr_vfifo(const u32 grp, u32 *v)
 {
-       uint32_t i;
+       u32 i;
 
-       for (i = 0; i < VFIFO_SIZE-1; i++)
+       for (i = 0; i < VFIFO_SIZE - 1; i++)
                rw_mgr_incr_vfifo(grp, v);
 }