drm/i915/display: Extract chv_read_luts()
authorSwati Sharma <swati2.sharma@intel.com>
Mon, 9 Sep 2019 12:01:43 +0000 (17:31 +0530)
committerJani Nikula <jani.nikula@intel.com>
Tue, 10 Sep 2019 10:23:26 +0000 (13:23 +0300)
commit4d154d33941dad07b9bb49c9dee356342a98e00a
tree940a0deb10d539ae27c4f6b82fa8db9ed4b1ef71
parent8efd06989df45fc81eb675e18e05b579bf064e8a
drm/i915/display: Extract chv_read_luts()

For cherryview, add hw read out to create hw blob of gamma
lut values.

Review comments from previous series:
https://patchwork.freedesktop.org/patch/328252

v4: -No need to initialize *blob [Jani]
    -Removed right shifts [Jani]
    -Dropped dev local var [Jani]
v5: -Returned blob instead of assigning it internally within the
     function [Ville]
    -Renamed function cherryview_get_color_config() to chv_read_luts()
    -Renamed cherryview_get_gamma_config() to chv_read_cgm_gamma_lut()
     [Ville]
v9: -80 character limit [Uma]
    -Made read func para as const [Ville, Uma]
    -Renamed chv_read_cgm_gamma_lut() to chv_read_cgm_gamma_lut()
     [Ville, Uma]

Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1568030503-26747-4-git-send-email-swati2.sharma@intel.com
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/i915_reg.h