summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm
diff options
context:
space:
mode:
authorjames qian wang (Arm Technology China) <james.qian.wang@arm.com>2019-11-12 12:09:59 +0100
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>2019-11-14 03:29:18 +0100
commit7ca7fcef13f494acd6d9c880ee7fb8134ed7d116 (patch)
treea78acfb5008cc2651a49746baee416350d6f00df /drivers/gpu/drm/arm
parentdrm/fb-helper: unexport drm_fb_helper_generic_probe (diff)
downloadlinux-7ca7fcef13f494acd6d9c880ee7fb8134ed7d116.tar.xz
linux-7ca7fcef13f494acd6d9c880ee7fb8134ed7d116.zip
drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()
Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to convert S31.32 sign-magnitude to Qm.n 2's complement that supported by hardware. V4: Address Mihai, Daniel and Ilia's review comments. V5: Includes the sign bit in the value of m (Qm.n). V6: Allows m = 0 according to Mihail's comments. V7: Address Mihail's comments. V8: Use type 'u32' to replace 'uint32_t' V9: Rebase. Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com> Reviewed-by: Mihail Atanassov <mihail.atanassov@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191112110927.20931-2-james.qian.wang@arm.com
Diffstat (limited to 'drivers/gpu/drm/arm')
0 files changed, 0 insertions, 0 deletions