[media] omap3isp: Default link validation for ccp2, csi2, preview and resizer
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 11 Jan 2012 16:27:02 +0000 (13:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 11:52:57 +0000 (08:52 -0300)
Use default link validation for ccp2, csi2, preview and resizer. On ccp2,
csi2 and ccdc we also collect information on external subdevs as one may be
connected to those entities.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispccp2.c
drivers/media/video/omap3isp/ispcsi2.c
drivers/media/video/omap3isp/isppreview.c
drivers/media/video/omap3isp/ispresizer.c

index ee7dcda36b6d3ee99da6cb99fbe344e965e20f69..85f0de85f37cb65654c73c7015b49e4d45ee85bd 100644 (file)
@@ -998,6 +998,7 @@ static int ccp2_link_setup(struct media_entity *entity,
 /* media operations */
 static const struct media_entity_operations ccp2_media_ops = {
        .link_setup = ccp2_link_setup,
+       .link_validate = v4l2_subdev_link_validate,
 };
 
 /*
index 75ac6d46696223238d997ca839fcd5ddfc4b99d2..a1724362b6d5e039307eeb7849244f43da97a5a0 100644 (file)
@@ -1167,6 +1167,7 @@ static int csi2_link_setup(struct media_entity *entity,
 /* media operations */
 static const struct media_entity_operations csi2_media_ops = {
        .link_setup = csi2_link_setup,
+       .link_validate = v4l2_subdev_link_validate,
 };
 
 void omap3isp_csi2_unregister_entities(struct isp_csi2_device *csi2)
index cbc887010b2883bf026a09f3996a3b895e7cc8c3..8a4935ecc655e9c114cd2f7defb51498f50d38c5 100644 (file)
@@ -2217,6 +2217,7 @@ static int preview_link_setup(struct media_entity *entity,
 /* media operations */
 static const struct media_entity_operations preview_media_ops = {
        .link_setup = preview_link_setup,
+       .link_validate = v4l2_subdev_link_validate,
 };
 
 void omap3isp_preview_unregister_entities(struct isp_prev_device *prev)
index d7341ab15ffeebc6c7de27d126c11659ba24d4ea..14041c9c8643fdd85d9c295facd2ff54983e53d6 100644 (file)
@@ -1641,6 +1641,7 @@ static int resizer_link_setup(struct media_entity *entity,
 /* media operations */
 static const struct media_entity_operations resizer_media_ops = {
        .link_setup = resizer_link_setup,
+       .link_validate = v4l2_subdev_link_validate,
 };
 
 void omap3isp_resizer_unregister_entities(struct isp_res_device *res)