drm/sun4i: backend: Use explicit fourcc helpers for packed YUV422 check
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 18 Jan 2019 14:51:13 +0000 (15:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 18 Jan 2019 18:00:29 +0000 (19:00 +0100)
commit0fff724a33917ac581b5825375d0b57affedee76
tree9b4df291e2f62c84e3882ab570e7354e2df7e97b
parenta211e56e947c8dbf37e1682f278bcfe8b20129c4
drm/sun4i: backend: Use explicit fourcc helpers for packed YUV422 check

Checking for the number of planes is not sufficient to en ensure that
the format is a packed YUV422.

Use explicit fourcc helpers for the check instead.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190118145133.21281-4-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c