drm/i915: Remove hdcp2_hdmi_msg_timeout.timeout2
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Oct 2019 14:51:26 +0000 (17:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 14:10:19 +0000 (17:10 +0300)
commiteac03efdc85f062b16c72dae848b56aba261d566
treef7dcde35bb5968b7ab40d326b9cf564bb9fff7b5
parent770ce5a07190e26b18f46037f357c1870ce29b30
drm/i915: Remove hdcp2_hdmi_msg_timeout.timeout2

The only reason for the timeout2 value in the array is the
HDCP_2_2_AKE_SEND_HPRIME message. But that one still needs
special casing inside the loop, and so just ends up making
the code harder to read. Let's just remove this leaky
timeout2 abstraction and special case that one command
in a way that is easy to understand. We can then remove the
timeout2 member from struct entirely.

    text    data     bss     dec     hex filename
-  34633     360       0   34993    88b1 intel_hdmi.o
+  34521     360       0   34881    8841 intel_hdmi.o

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010145127.7487-4-ville.syrjala@linux.intel.com
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
drivers/gpu/drm/i915/display/intel_hdmi.c