diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-12-17 14:42:59 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-01-11 09:56:40 -0500 |
commit | 1e9080ac21d182913df404d634a7c847af5e35be (patch) | |
tree | 93169d56af8018b402f01de52dbc8b9537ac1500 | |
parent | 934c5b32a5e43d8de2ab4f1566f91d7c3bf8cb64 (diff) |
drm: Unexport drm_crtc_force_disable
It's a legacy kms only thing, good to hide it better now that all
those old drivers use the legacy crtc helpers directly.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20181217194303.14397-3-daniel.vetter@ffwll.ch
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_crtc_internal.h | 1 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 42cdb4181643..e224b9b7d17a 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -93,15 +93,6 @@ struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx) | |||
93 | } | 93 | } |
94 | EXPORT_SYMBOL(drm_crtc_from_index); | 94 | EXPORT_SYMBOL(drm_crtc_from_index); |
95 | 95 | ||
96 | /** | ||
97 | * drm_crtc_force_disable - Forcibly turn off a CRTC | ||
98 | * @crtc: CRTC to turn off | ||
99 | * | ||
100 | * Note: This should only be used by non-atomic legacy drivers. | ||
101 | * | ||
102 | * Returns: | ||
103 | * Zero on success, error code on failure. | ||
104 | */ | ||
105 | int drm_crtc_force_disable(struct drm_crtc *crtc) | 96 | int drm_crtc_force_disable(struct drm_crtc *crtc) |
106 | { | 97 | { |
107 | struct drm_mode_set set = { | 98 | struct drm_mode_set set = { |
@@ -112,7 +103,6 @@ int drm_crtc_force_disable(struct drm_crtc *crtc) | |||
112 | 103 | ||
113 | return drm_mode_set_config_internal(&set); | 104 | return drm_mode_set_config_internal(&set); |
114 | } | 105 | } |
115 | EXPORT_SYMBOL(drm_crtc_force_disable); | ||
116 | 106 | ||
117 | /** | 107 | /** |
118 | * drm_crtc_force_disable_all - Forcibly turn off all enabled CRTCs | 108 | * drm_crtc_force_disable_all - Forcibly turn off all enabled CRTCs |
diff --git a/drivers/gpu/drm/drm_crtc_internal.h b/drivers/gpu/drm/drm_crtc_internal.h index 86893448f486..216f2a9ee3d4 100644 --- a/drivers/gpu/drm/drm_crtc_internal.h +++ b/drivers/gpu/drm/drm_crtc_internal.h | |||
@@ -50,6 +50,7 @@ int drm_crtc_check_viewport(const struct drm_crtc *crtc, | |||
50 | const struct drm_framebuffer *fb); | 50 | const struct drm_framebuffer *fb); |
51 | int drm_crtc_register_all(struct drm_device *dev); | 51 | int drm_crtc_register_all(struct drm_device *dev); |
52 | void drm_crtc_unregister_all(struct drm_device *dev); | 52 | void drm_crtc_unregister_all(struct drm_device *dev); |
53 | int drm_crtc_force_disable(struct drm_crtc *crtc); | ||
53 | 54 | ||
54 | struct dma_fence *drm_crtc_create_fence(struct drm_crtc *crtc); | 55 | struct dma_fence *drm_crtc_create_fence(struct drm_crtc *crtc); |
55 | 56 | ||
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b21437bc95bf..b955ef1f1e3e 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -1140,7 +1140,6 @@ static inline uint32_t drm_crtc_mask(const struct drm_crtc *crtc) | |||
1140 | return 1 << drm_crtc_index(crtc); | 1140 | return 1 << drm_crtc_index(crtc); |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | int drm_crtc_force_disable(struct drm_crtc *crtc); | ||
1144 | int drm_crtc_force_disable_all(struct drm_device *dev); | 1143 | int drm_crtc_force_disable_all(struct drm_device *dev); |
1145 | 1144 | ||
1146 | int drm_mode_set_config_internal(struct drm_mode_set *set); | 1145 | int drm_mode_set_config_internal(struct drm_mode_set *set); |