drm/i915: Replace some gamma_mode ifs with switches
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Sep 2020 13:16:56 +0000 (16:16 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Sep 2020 15:09:52 +0000 (18:09 +0300)
commit7852ddd5d60a0ed13eac30831b6dfd08943554ce
tree71480a57e74666476e52c409be6f16ec9ec9d27d
parentd0a9acaa6bc28ebefb5774d4d2eab484eae5c3fd
drm/i915: Replace some gamma_mode ifs with switches

Since gamma_mode can have more than two values on ilk+
let's use switch statements when interpreting them.

v2: Fix typo (Uma)

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200925131656.10022-10-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_color.c