drm/i915: Merge sandybridge_pcode_(read|write)
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Apr 2019 08:17:24 +0000 (09:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Apr 2019 09:20:46 +0000 (10:20 +0100)
commit063203c013c552f42e154ad7ad16a0bbdfcaf7d6
treed2184960394bb925e7d43e68aa2dd20077db4ddc
parent7531942861c80aa26876762dc0775ddd727104f5
drm/i915: Merge sandybridge_pcode_(read|write)

These routines are identical except in the nature of the value parameter.
For writes it is a pure in-param, but for a read, we need an out-param.
Since they differ in a single line, merge the two routines into one.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190426081725.31217-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_pm.c