media: entity: Add link_type_name() helper
authorDaniel Scally <djrscally@gmail.com>
Wed, 2 Mar 2022 22:03:02 +0000 (22:03 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 06:58:44 +0000 (07:58 +0100)
commit9d0c23bfe7083f182194ca235156a4098aa59344
tree6dd0598d021589ddb737b8efb02bbd51d4f47ad2
parent4e4dab4bb6029dbee63f12a249ddc44b0124ea63
media: entity: Add link_type_name() helper

Now we have three types of media link, printing the right name during
debug output is slightly more complicated. Add a helper function to
make it easier.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/mc/mc-entity.c