[media] v4l: omap4iss: csi2: Replace manual if statement with a subclk field
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 10 Oct 2013 12:06:27 +0000 (09:06 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 11 Dec 2013 11:04:39 +0000 (09:04 -0200)
commit216814fb0167673c6417b5db83ade84e58031e2c
tree7216fe2dd92ed1133407c4baac108cced5aaa15d
parentf3632ba850c70bf24a80295621857166e0c0b14c
[media] v4l: omap4iss: csi2: Replace manual if statement with a subclk field

Instead of manually checking whether the CSI2 module is CSI2a or CSI2b
in order to select the right subclock to enable/disable, add a subclk
field to the iss_csi2 structure, initialize it with the corresponding
subclock value and use it at runtime.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/omap4iss/iss_csi2.c
drivers/staging/media/omap4iss/iss_csi2.h