diff options
author | Thierry Reding <treding@nvidia.com> | 2021-06-10 14:12:35 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-08-16 13:18:46 +0300 |
commit | 82ade934dde45b9d9008954b297f7727233e37af (patch) | |
tree | 2205e9718b82156373481326c9bef5198c34dfbd | |
parent | 32a4eb04d59ae8d5bb5baa5a8528e31094ae8e84 (diff) | |
download | linux-82ade934dde45b9d9008954b297f7727233e37af.tar.xz |
drm/arm: malidp: Use fourcc_mod_is_vendor() helper
Rather than open-coding the vendor extraction operation, use the newly
introduced helper macro.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210610111236.3814211-2-thierry.reding@gmail.com
-rw-r--r-- | drivers/gpu/drm/arm/malidp_planes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 8c2ab3d653b7..0562bdaac00c 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -165,7 +165,7 @@ bool malidp_format_mod_supported(struct drm_device *drm, return !malidp_hw_format_is_afbc_only(format); } - if ((modifier >> 56) != DRM_FORMAT_MOD_VENDOR_ARM) { + if (!fourcc_mod_is_vendor(modifier, ARM)) { DRM_ERROR("Unknown modifier (not Arm)\n"); return false; } |