drm/rockchip: vop use is_enabled instead of dpms mode
authorMark Yao <mark.yao@rock-chips.com>
Thu, 22 Jan 2015 06:37:56 +0000 (14:37 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 16 Mar 2015 05:50:04 +0000 (13:50 +0800)
commit31e980c5a2d35ce411034b7fd842433542c1c60e
tree010ab3ff3a243aa5910fe33bcc04915b3dad15f5
parent44ddb7ef38ae720849cf81e71c370e55071b05a7
drm/rockchip: vop use is_enabled instead of dpms mode

drm dpms have many power modes: ON,OFF,SUSPEND,STANDBY, etc.
but vop only have enable/disable mode, maybe case such bug:
 --> DRM_DPMS_ON: power on vop
 --> DRM_DPMS_SUSPEND: power off vop
 --> DRM_DPMS_OFF: already power off at SUSPEND, crash
so use a bool val is more suitable.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c