Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: verisilicon: Use fourcc format string

There is a fourcc format string for printing formats. Use it instead of
open coding the conversion.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Michael Tretter and committed by
Hans Verkuil
8bf5671e cc4cbd4b

+1 -5
+1 -5
drivers/media/platform/verisilicon/hantro_v4l2.c
··· 303 303 304 304 coded = capture == ctx->is_encoder; 305 305 306 - vpu_debug(4, "trying format %c%c%c%c\n", 307 - (pix_mp->pixelformat & 0x7f), 308 - (pix_mp->pixelformat >> 8) & 0x7f, 309 - (pix_mp->pixelformat >> 16) & 0x7f, 310 - (pix_mp->pixelformat >> 24) & 0x7f); 306 + vpu_debug(4, "trying format %p4cc\n", &pix_mp->pixelformat); 311 307 312 308 fmt = hantro_find_format(ctx, pix_mp->pixelformat); 313 309 if (!fmt) {