]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dd15a3bf9b1e9792f0cbbb6911ecc003232d8f3
treed2184960394bb925e7d43e68aa2dd20077db4ddc
parent4817b72ab1db90d10844c59ba553cd7bd1d4af19
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