diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-23 09:46:52 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-23 21:43:35 -0400 |
commit | c2611031b49e9ccd571a3737845af3fca2a2090f (patch) | |
tree | d24630e666291bb4a2d5c0b6968b0e54ac30a620 /drivers/gpu | |
parent | e7f0a889841e14315062c268abea6d2e657d60d3 (diff) |
drm: Move internal debugfs functions to drm_internal.h
In my header cleanup I've missed the debugfs functions completely.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_internal.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index bc71be6f29e0..7cc0a3516871 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h | |||
@@ -102,3 +102,31 @@ int drm_setmaster_ioctl(struct drm_device *dev, void *data, | |||
102 | int drm_dropmaster_ioctl(struct drm_device *dev, void *data, | 102 | int drm_dropmaster_ioctl(struct drm_device *dev, void *data, |
103 | struct drm_file *file_priv); | 103 | struct drm_file *file_priv); |
104 | struct drm_master *drm_master_create(struct drm_minor *minor); | 104 | struct drm_master *drm_master_create(struct drm_minor *minor); |
105 | |||
106 | /* drm_debugfs.c */ | ||
107 | #if defined(CONFIG_DEBUG_FS) | ||
108 | int drm_debugfs_init(struct drm_minor *minor, int minor_id, | ||
109 | struct dentry *root); | ||
110 | int drm_debugfs_cleanup(struct drm_minor *minor); | ||
111 | int drm_debugfs_connector_add(struct drm_connector *connector); | ||
112 | void drm_debugfs_connector_remove(struct drm_connector *connector); | ||
113 | #else | ||
114 | static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, | ||
115 | struct dentry *root) | ||
116 | { | ||
117 | return 0; | ||
118 | } | ||
119 | |||
120 | static inline int drm_debugfs_cleanup(struct drm_minor *minor) | ||
121 | { | ||
122 | return 0; | ||
123 | } | ||
124 | |||
125 | static inline int drm_debugfs_connector_add(struct drm_connector *connector) | ||
126 | { | ||
127 | return 0; | ||
128 | } | ||
129 | static inline void drm_debugfs_connector_remove(struct drm_connector *connector) | ||
130 | { | ||
131 | } | ||
132 | #endif | ||