drm/i915/gvt: Extract mmio_read_from_hw() common function
authorXiong Zhang <[email protected]>
Fri, 13 Oct 2017 22:34:46 +0000 (06:34 +0800)
committerZhi Wang <[email protected]>
Thu, 26 Oct 2017 17:39:00 +0000 (01:39 +0800)
commit20a2bcdec5071f78bebe48c5eecdb89de6e96acb
tree88277af9542d5e686b01d660aaf34cb366269282
parentedee7ecdb4d7311f351feaeb53e269f416bb1b57
drm/i915/gvt: Extract mmio_read_from_hw() common function

The mmio read handler for ring timestmap / instdone register are same
as reading hw value directly.

Extract it as common function to reduce code duplications.

Signed-off-by: Xiong Zhang <[email protected]>
Signed-off-by: Zhi Wang <[email protected]>
drivers/gpu/drm/i915/gvt/handlers.c