media: mc: drop an unused debug function
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 08:42:08 +0000 (08:42 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 29 Nov 2021 09:15:04 +0000 (10:15 +0100)
The gobj_type() function translates the media object type into
a name, being useful for debugging purposes. It is currently
not used. So, drop it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/mc/mc-entity.c

index f40f419..c023406 100644 (file)
 #include <media/media-entity.h>
 #include <media/media-device.h>
 
-static inline const char *gobj_type(enum media_gobj_type type)
-{
-       switch (type) {
-       case MEDIA_GRAPH_ENTITY:
-               return "entity";
-       case MEDIA_GRAPH_PAD:
-               return "pad";
-       case MEDIA_GRAPH_LINK:
-               return "link";
-       case MEDIA_GRAPH_INTF_DEVNODE:
-               return "intf-devnode";
-       default:
-               return "unknown";
-       }
-}
-
 static inline const char *intf_type(struct media_interface *intf)
 {
        switch (intf->type) {