summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-22 08:42:08 +0000
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-29 10:15:04 +0100
commita057d92a36faabb66a0305d3e4c17d7a98166932 (patch)
tree0c951ec4f33d8990cac1b31bd0d2323d37b8236b
parenta62d2f710799263709db82f251e30c73886cc3af (diff)
downloadlinux-a057d92a36faabb66a0305d3e4c17d7a98166932.tar.bz2
media: mc: drop an unused debug function
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>
-rw-r--r--drivers/media/mc/mc-entity.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c
index f40f41977142..c02340698ad6 100644
--- a/drivers/media/mc/mc-entity.c
+++ b/drivers/media/mc/mc-entity.c
@@ -14,22 +14,6 @@
#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) {