drm: fix lut value extraction function
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 22 Mar 2016 14:10:33 +0000 (14:10 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Apr 2016 10:52:05 +0000 (12:52 +0200)
commit644a80508f918e488aad70814b65b7007438ef4c
tree56508eb632c9a3bb81b2db222e9c59466f7690c3
parent8d4d0d700dda04c5095a08e91f59f537995aa024
drm: fix lut value extraction function

When extracting the value at full precision (16 bits), no need to
round the value.

This was spotted by Jani when running sparse. Unfortunately this fix
doesn't get rid of the warning.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Jani Nikula <jani.nikula@intel.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: dri-devel@lists.freedesktop.org
Fixes: 5488dc16fde7 ("drm: introduce pipe color correction properties")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1458655833-19547-1-git-send-email-lionel.g.landwerlin@intel.com
include/drm/drm_crtc.h