]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: ipu: simplify if else code
authorPeng Fan <Peng.Fan@freescale.com>
Tue, 24 Nov 2015 08:54:23 +0000 (16:54 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 25 Nov 2015 08:52:18 +0000 (09:52 +0100)
commitcd8f09d9d7a856bc47d09c3efa758e58e443ded9
tree110d26eb991130f4f3464196c0ea93895ccb3b76
parent01a8cf91513981d05bf89840d768e9c060ee998b
video: ipu: simplify if else code

Simplify if/else code, since if channel equals to MEM_BG_SYNC or
MEM_FG_SYNC, we have value 5 for 'dc_chan'.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
drivers/video/ipu_disp.c