drm/i915/display: Extract glk_read_luts()
authorSwati Sharma <swati2.sharma@intel.com>
Tue, 3 Sep 2019 19:22:57 +0000 (00:52 +0530)
committerJani Nikula <jani.nikula@intel.com>
Wed, 4 Sep 2019 08:55:50 +0000 (11:55 +0300)
commit4bb6a9d5d9a8289673c4cb0786d44be8a63c21db
tree7f62b8405e79070e82011b3ced5333635222fb68
parent6b97b118d4d542c7bc25b725c6de3947fffb921b
drm/i915/display: Extract glk_read_luts()

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

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 glk_get_color_config() to glk_read_luts() [Ville]
    -Added degamma validation [Ville]
v9: -80 character limit [Uma]
    -Made read func para as const [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/1567538578-4489-8-git-send-email-swati2.sharma@intel.com
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/i915_reg.h