From: Kiran AVND Date: Mon, 19 May 2014 12:33:05 +0000 (-0300) Subject: [media] s5p-mfc: Add variants to access mfc registers X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a9c6f681257985468e4835bf9f911ec56482f02;p=pandora-kernel.git [media] s5p-mfc: Add variants to access mfc registers This patch is needed in preparation to add MFC V8 where the register offsets are changed w.r.t MFC V6/V7. This patch adds variants of MFC V6 and V7 while accessing MFC registers. Registers are kept in mfc context and are initialized to a particular MFC variant during probe, which is used instead of macros. This avoids duplication of the code for MFC variants V6 & V7, and reduces the if_else checks while accessing registers of different MFC variants. Signed-off-by: Kiran AVND Signed-off-by: Pawel Osciak Signed-off-by: Arun Kumar K Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed