OSDN Git Service

drm: move DRM_SWITCH_POWER defines to drm_device.h
authorSam Ravnborg <sam@ravnborg.org>
Tue, 8 Jan 2019 19:29:29 +0000 (20:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Jan 2019 21:11:18 +0000 (22:11 +0100)
commit7af78f406119366fb15a15823f720ebf06bb5652
treee330a2a98f9b71bcee9fc8471aceaea4b132dbbc
parentac4f24c213b81ce668574cebaf3e1b2bc92fcff6
drm: move DRM_SWITCH_POWER defines to drm_device.h

Move DRM_SWITCH_POWER out of drmP.h to allow users
to get rid of the drmP include.
Moved to drm_device.h because drm_device.switch_power_state
is the only user.

Converted to enum and added sparse kerneldoc comments.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190108192939.15255-3-sam@ravnborg.org
include/drm/drmP.h
include/drm/drm_device.h