summaryrefslogtreecommitdiff
path: root/linux-core/drm_modes.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-18 11:49:42 -0700
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-18 11:49:42 -0700
commit5587961cfeff86d8368ff03867a1f0667e4a64d4 (patch)
treea413697936c9bbf059413ba64762e82ac48a2fce /linux-core/drm_modes.c
parentdfc02547ff5f35bfa5cffd6a0dcb56402db59f33 (diff)
Document main drm_crtc.c functions, and rename drm_crtc_mode_create to
drm_mode_create to be consistent with the other functions. Also document where we need locking fixes and what the locks are for.
Diffstat (limited to 'linux-core/drm_modes.c')
-rw-r--r--linux-core/drm_modes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_modes.c b/linux-core/drm_modes.c
index df34fc27..7d976d9f 100644
--- a/linux-core/drm_modes.c
+++ b/linux-core/drm_modes.c
@@ -152,7 +152,7 @@ struct drm_display_mode *drm_mode_duplicate(struct drm_device *dev,
struct drm_display_mode *nmode;
int new_id;
- nmode = drm_crtc_mode_create(dev);
+ nmode = drm_mode_create(dev);
if (!nmode)
return NULL;
@@ -184,6 +184,7 @@ bool drm_mode_equal(struct drm_display_mode *mode1, struct drm_display_mode *mod
}
EXPORT_SYMBOL(drm_mode_equal);
+/* caller must hold modes lock */
void drm_mode_validate_size(struct drm_device *dev,
struct list_head *mode_list,
int maxX, int maxY, int maxPitch)
@@ -224,6 +225,7 @@ void drm_mode_validate_clocks(struct drm_device *dev,
}
EXPORT_SYMBOL(drm_mode_validate_clocks);
+/* caller must hold modes lock */
void drm_mode_prune_invalid(struct drm_device *dev,
struct list_head *mode_list, bool verbose)
{