diff options
author | Stéphane Marchesin <marcheu@chromium.org> | 2013-08-13 14:55:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-18 20:30:11 -0400 |
commit | b17df86ece5e674c6f50b9a219067b9a80ea9dd1 (patch) | |
tree | 3d7fe37deea37650caf10877804afa60b493eaaf | |
parent | d79cdc8312689b39c6d83718c1c196af4b3cd18c (diff) |
drm: Remove drm_mode_validate_clocks
This function is unused.
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 37 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
2 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index a6729bfe6860..504a602f495c 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -923,43 +923,6 @@ void drm_mode_validate_size(struct drm_device *dev, | |||
923 | EXPORT_SYMBOL(drm_mode_validate_size); | 923 | EXPORT_SYMBOL(drm_mode_validate_size); |
924 | 924 | ||
925 | /** | 925 | /** |
926 | * drm_mode_validate_clocks - validate modes against clock limits | ||
927 | * @dev: DRM device | ||
928 | * @mode_list: list of modes to check | ||
929 | * @min: minimum clock rate array | ||
930 | * @max: maximum clock rate array | ||
931 | * @n_ranges: number of clock ranges (size of arrays) | ||
932 | * | ||
933 | * LOCKING: | ||
934 | * Caller must hold a lock protecting @mode_list. | ||
935 | * | ||
936 | * Some code may need to check a mode list against the clock limits of the | ||
937 | * device in question. This function walks the mode list, testing to make | ||
938 | * sure each mode falls within a given range (defined by @min and @max | ||
939 | * arrays) and sets @mode->status as needed. | ||
940 | */ | ||
941 | void drm_mode_validate_clocks(struct drm_device *dev, | ||
942 | struct list_head *mode_list, | ||
943 | int *min, int *max, int n_ranges) | ||
944 | { | ||
945 | struct drm_display_mode *mode; | ||
946 | int i; | ||
947 | |||
948 | list_for_each_entry(mode, mode_list, head) { | ||
949 | bool good = false; | ||
950 | for (i = 0; i < n_ranges; i++) { | ||
951 | if (mode->clock >= min[i] && mode->clock <= max[i]) { | ||
952 | good = true; | ||
953 | break; | ||
954 | } | ||
955 | } | ||
956 | if (!good) | ||
957 | mode->status = MODE_CLOCK_RANGE; | ||
958 | } | ||
959 | } | ||
960 | EXPORT_SYMBOL(drm_mode_validate_clocks); | ||
961 | |||
962 | /** | ||
963 | * drm_mode_prune_invalid - remove invalid modes from mode list | 926 | * drm_mode_prune_invalid - remove invalid modes from mode list |
964 | * @dev: DRM device | 927 | * @dev: DRM device |
965 | * @mode_list: list of modes to check | 928 | * @mode_list: list of modes to check |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index fa12a2fa4293..32e0820357e6 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -930,9 +930,6 @@ extern void drm_mode_list_concat(struct list_head *head, | |||
930 | extern void drm_mode_validate_size(struct drm_device *dev, | 930 | extern void drm_mode_validate_size(struct drm_device *dev, |
931 | struct list_head *mode_list, | 931 | struct list_head *mode_list, |
932 | int maxX, int maxY, int maxPitch); | 932 | int maxX, int maxY, int maxPitch); |
933 | extern void drm_mode_validate_clocks(struct drm_device *dev, | ||
934 | struct list_head *mode_list, | ||
935 | int *min, int *max, int n_ranges); | ||
936 | extern void drm_mode_prune_invalid(struct drm_device *dev, | 933 | extern void drm_mode_prune_invalid(struct drm_device *dev, |
937 | struct list_head *mode_list, bool verbose); | 934 | struct list_head *mode_list, bool verbose); |
938 | extern void drm_mode_sort(struct list_head *mode_list); | 935 | extern void drm_mode_sort(struct list_head *mode_list); |