drm/i915/psr: Move logic to get TPS registers values to another function
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 12 Mar 2019 19:57:42 +0000 (12:57 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 13 Mar 2019 21:20:20 +0000 (14:20 -0700)
commit1e0c05c09037c593f0c06054a28c1021e13e8dfa
tree2ecf6940cf12f37e77b5cc25ad786d1c68a549a0
parent88a0d9606aff09d2b1c5dbe95a9df9dac44e79b6
drm/i915/psr: Move logic to get TPS registers values to another function

This will make hsw_activate_psr1() more easy to read and will make
future modification to TPS registers more easy to review and read.

v4: Rename new function to intel_psr1_get_tp_time() (Dhinakaran and
Rodrigo)

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190312195743.8829-2-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c