projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a4eb0
)
drm/arm: malidp: Use fourcc_mod_is_vendor() helper
author
Thierry Reding
<treding@nvidia.com>
Thu, 10 Jun 2021 11:12:35 +0000
(13:12 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Mon, 16 Aug 2021 10:18:46 +0000
(12:18 +0200)
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
drivers/gpu/drm/arm/malidp_planes.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/arm/malidp_planes.c
b/drivers/gpu/drm/arm/malidp_planes.c
index 8c2ab3d653b705f632d29e8e13a94d803d82688a..0562bdaac00ce3fc95f2a9b913846222afdd3a07 100644
(file)
--- 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;
}