diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-07-04 20:04:47 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-12 09:40:45 -0400 |
commit | 6e5f73fcadb66188f6c5e43ae58d34b2ced524c0 (patch) | |
tree | c4a8b5b04e98265cbe30dba36449c5f9f41806ec | |
parent | 1233d4d68af23526e5b90f345f7bf6e4961d47c0 (diff) |
drm: make drm_vblank_count_and_time() static
As they are not used anywhere outside drm_irq.c make them static.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1467677092-5089-1-git-send-email-gustavo@padovan.org
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 7 | ||||
-rw-r--r-- | include/drm/drmP.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index e98b24b24cba..35c86acede38 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -945,8 +945,8 @@ EXPORT_SYMBOL(drm_crtc_vblank_count); | |||
945 | * | 945 | * |
946 | * This is the legacy version of drm_crtc_vblank_count_and_time(). | 946 | * This is the legacy version of drm_crtc_vblank_count_and_time(). |
947 | */ | 947 | */ |
948 | u32 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe, | 948 | static u32 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe, |
949 | struct timeval *vblanktime) | 949 | struct timeval *vblanktime) |
950 | { | 950 | { |
951 | struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; | 951 | struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; |
952 | u32 vblank_count; | 952 | u32 vblank_count; |
@@ -963,7 +963,6 @@ u32 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe, | |||
963 | 963 | ||
964 | return vblank_count; | 964 | return vblank_count; |
965 | } | 965 | } |
966 | EXPORT_SYMBOL(drm_vblank_count_and_time); | ||
967 | 966 | ||
968 | /** | 967 | /** |
969 | * drm_crtc_vblank_count_and_time - retrieve "cooked" vblank counter value | 968 | * drm_crtc_vblank_count_and_time - retrieve "cooked" vblank counter value |
@@ -975,8 +974,6 @@ EXPORT_SYMBOL(drm_vblank_count_and_time); | |||
975 | * vblank events since the system was booted, including lost events due to | 974 | * vblank events since the system was booted, including lost events due to |
976 | * modesetting activity. Returns corresponding system timestamp of the time | 975 | * modesetting activity. Returns corresponding system timestamp of the time |
977 | * of the vblank interval that corresponds to the current vblank counter value. | 976 | * of the vblank interval that corresponds to the current vblank counter value. |
978 | * | ||
979 | * This is the native KMS version of drm_vblank_count_and_time(). | ||
980 | */ | 977 | */ |
981 | u32 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, | 978 | u32 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, |
982 | struct timeval *vblanktime) | 979 | struct timeval *vblanktime) |
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index cf918e3e6afb..c2fe2cffb809 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -942,8 +942,6 @@ extern int drm_wait_vblank(struct drm_device *dev, void *data, | |||
942 | struct drm_file *filp); | 942 | struct drm_file *filp); |
943 | extern u32 drm_vblank_count(struct drm_device *dev, unsigned int pipe); | 943 | extern u32 drm_vblank_count(struct drm_device *dev, unsigned int pipe); |
944 | extern u32 drm_crtc_vblank_count(struct drm_crtc *crtc); | 944 | extern u32 drm_crtc_vblank_count(struct drm_crtc *crtc); |
945 | extern u32 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe, | ||
946 | struct timeval *vblanktime); | ||
947 | extern u32 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, | 945 | extern u32 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, |
948 | struct timeval *vblanktime); | 946 | struct timeval *vblanktime); |
949 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, | 947 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, |