Revert "wip"
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 25 Jun 2014 09:37:24 +0000 (11:37 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 25 Jun 2014 09:37:48 +0000 (11:37 +0200)
The commit was pushed by mistake, revert it.

This reverts commit 83d0df45745873f856c8a63bf4a86fec70559fca.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
utils/media-ctl/media-ctl.c

index f89d024..1c4dae4 100644 (file)
@@ -353,7 +353,6 @@ static void media_print_topology_dot(struct media_device *media)
                        break;
 
                case MEDIA_ENT_T_V4L2_SUBDEV:
-               default:
                        printf("\tn%08x [label=\"{{", info->id);
 
                        for (j = 0, npads = 0; j < info->pads; ++j) {
@@ -381,10 +380,11 @@ static void media_print_topology_dot(struct media_device *media)
                                npads++;
                        }
 
-                       printf("}}\", shape=Mrecord, style=filled, fillcolor=%s]\n",
-                               media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV
-                               ? "green" : "blue");
+                       printf("}}\", shape=Mrecord, style=filled, fillcolor=green]\n");
                        break;
+
+               default:
+                       continue;
                }
 
                for (j = 0; j < num_links; j++) {