drm/i915: Refactor LUT read functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 3 Mar 2020 17:33:11 +0000 (19:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Mar 2020 20:09:54 +0000 (22:09 +0200)
commit0ff3b23f0c9b85df195a97277963b9a834389b50
tree1aaf96b6e41d58b4586c2c45221d642d004892d7
parent73ce0969d1d0bc2cb53370017923640db72e70ec
drm/i915: Refactor LUT read functions

Extract all the 'hw value -> LUT entry' stuff into small helpers
to make the main 'read out the entire LUT' loop less bogged down
by such mundane details.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200303173313.28117-8-ville.syrjala@linux.intel.com
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
drivers/gpu/drm/i915/display/intel_color.c