]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ddr: altera: Clean up set_rank_and_odt_mask() part 1
authorMarek Vasut <marex@denx.de>
Mon, 20 Jul 2015 06:03:11 +0000 (08:03 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:27 +0000 (08:17 +0200)
commit9f0f21fae30ddac35bbce085b35d901ed7cbcf3d
treeb967e75dd31652754235498953125808ad8f4d88
parent097350bfffb8d0216aecfae4349b2695143bc22b
ddr: altera: Clean up set_rank_and_odt_mask() part 1

First, invert the logic of the if (odt_mode == ...) conditional to make
the OFF mode harder to miss. It is a short piece of code right at the
end, so move it up.

Also, clean up data types and constify where applicable and clean up
the cs_and_odt_mask assignment. No functional change.

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