]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Inline intel_dp_ycbcr420_config()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Sep 2020 18:41:56 +0000 (21:41 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Oct 2020 16:44:45 +0000 (19:44 +0300)
commit174046bf7d9c25aa59318a85f0cd53722413f53a
treee52e4bdbdad40d8e46acffc7ce9effe7b6a4e77c
parentecc669ba9cfaddf31c3959cd99ffd88252ee7c83
drm/i915: Inline intel_dp_ycbcr420_config()

intel_dp_ycbcr420_config() is rather pointless. Just inline it
directly into intel_dp_compute_config(). This gets rid of the
ugly double assignment of output_format.

Not really sure what the best policy would be when the user
supplies a mode classified by the display as "YCbCr 4:2:0
only", but we know that we can't do YCbCr 4:2:0 output. For
now keep the current behaviour of just silently upgrade
it to RGB 4:4:4.

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