[media] s5p-mfc: Replace bank1/bank2 entries with an array
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 8 Feb 2017 08:53:48 +0000 (06:53 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 18:48:32 +0000 (15:48 -0300)
commit0d9e301b10422f0c04952d7f3128f2e3ac9b5873
tree0a99fd60cf74c101d9165a2aa036fe560f5a799d
parent255d831dc96dd985a79f710ce94081506637613b
[media] s5p-mfc: Replace bank1/bank2 entries with an array

Internal MFC driver device structure contains two entries for keeping
addresses of the DMA memory banks. Replace them with the dma_base[] array
and use defines for accessing particular banks. This will help to simplify
code in the next patches.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Tested-by: Smitha T Murthy <smitha.t@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc_common.h
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c